diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index 8a0cb0733..ec8687e24 100644 --- a/server/src/uds/static/admin/main.js +++ b/server/src/uds/static/admin/main.js @@ -25,5 +25,5 @@ host=`+t.ip+` port=5900 `,o=new Blob([n],{type:"application/extension-vnc"});setTimeout(()=>{(0,eA.saveAs)(o,t.ip+".vnc",{autoBom:!1})},100)}onCustomAssigned(t){return q(this,null,function*(){let n=t.table.selection.selected[0];if(t.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield qf.launch(this.api,n,this.assignedServices))===!0&&t.table.overview()}else t.param.id==="log"?Hd.launch(this.api,n,this.assignedServices):t.param.id==="assign-service"?(yield Xk.launch(this.api,this.servicePool))===!0&&t.table.overview():t.param.id==="vnc"&&this.vnc(n)})}onCustomCached(t){let n=t.table.selection.selected[0];t.param.id==="log"&&this.cache&&Hd.launch(this.api,n,this.cache)}processsAssignedElement(t){t.in_use=this.api.boolAsHumanString(t.in_use),t.origState=t.state,t.state==="U"&&(t.state=t.os_state!==""&&t.os_state!=="U"?"Z":"U")}onDeleteAssigned(t){e.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))}onDeleteCache(t){e.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete cached service"))}processsCacheElement(t){t.origState=t.state,t.state==="U"&&(t.state=t.os_state!==""&&t.os_state!=="U"?"Z":"U")}onNewGroup(t){return q(this,null,function*(){(yield Yf.launch(this.api,this.servicePool,this.groups))===!0&&t.table.overview()})}onDeleteGroup(t){return q(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))})}onNewTransport(t){return q(this,null,function*(){(yield Yk.launch(this.api,this.servicePool))===!0&&t.table.overview()})}onDeleteTransport(t){return q(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))})}onNewPublication(t){return q(this,null,function*(){(yield Qk.launch(this.api,this.servicePool))===!0&&t.table.overview()})}onPublicationRowSelect(t){t.table.selection.selected.length===1&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))}onCustomPublication(t){t.param.id==="cancel-publication"?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(n=>{n&&this.publications&&this.publications.invoke(t.table.selection.selected[0].id+"/cancel").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})}):t.param.id==="changelog"&&Kk.launch(this.api,this.servicePool)}onNewScheduledAction(t){ew.launch(this.api,this.servicePool).subscribe(n=>t.table.overview())}onEditScheduledAction(t){ew.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteScheduledAction(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))}onCustomScheduleAction(t){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})}onNewAccessCalendar(t){Hl.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>t.table.overview())}onEditAccessCalendar(t){Hl.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteAccessCalendar(t){t.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)}onAccessCalendarLoad(t){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{let o=t.table.dataSource.data.filter(a=>!0);o.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=o})}processsCalendarOrScheduledElement(t){t.name=t.calendar,t.atStart=this.api.boolAsHumanString(t.atStart)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize"],[4,"ngIf"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize"],["icon","calendars",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","cached",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,D7,37,43,"div",5),d()),n&2&&(m(2),p("routerLink",Vi(4,d7,o.servicePool?o.servicePool.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/pools.png"),Ie),m(),P(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),p("ngIf",o.servicePool!==null))},dependencies:[pe,gi,ei,ti,oi,le,Te,lo,co,Jk],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-publish_date, .mat-column-state_date, .mat-column-creation_date{width:14rem} .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-mdc-cell{color:gray!important} .row-state-C>.mat-mdc-cell{color:gray!important} .row-state-E>.mat-mdc-cell{color:red!important} .row-state-R>.mat-mdc-cell{color:orange!important}"]});let i=e;return i})();var iw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))}onDetail(t){this.api.navigation.gotoMetapoolDetail(t.param.id)}processElement(t){t.visible=this.api.boolAsHumanString(t.visible),t.name=this.api.safeString(this.api.gui.icon(t.thumb)+t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"detailAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","onItem","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("detailAction",function(s){return o.onDetail(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]});let i=e;return i})();function k7(i,e){i&1&&(c(0,"uds-translate"),g(1,"New member pool"),d())}function A7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit member pool"),d())}function O7(i,e){if(i&1){let r=A();c(0,"uds-cond-select-search",11),b("changed",function(n){y(r);let o=_();return w(o.servicePoolsFilter=n)}),d()}}function R7(i,e){if(i&1&&(c(0,"mat-option",12),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}var nw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.servicePools=[],this.servicePoolsFilter="",this.model=a.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},a.memberPool&&(this.memberPool.id=a.memberPool.id)}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return q(this,null,function*(){this.servicePools=yield this.rest.servicesPools.summary(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}save(){return q(this,null,function*(){if(!this.memberPool.pool_id){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"));return}yield this.model.save(this.memberPool),this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(n,o){n&1&&(c(0,"h4",0),D(1,k7,2,0,"uds-translate",1)(2,A7,2,0,"uds-translate",1),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Priority"),d()(),c(9,"input",3),H("ngModelChange",function(s){return $(o.memberPool.priority,s)||(o.memberPool.priority=s),s}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),g(13,"Service pool"),d()(),c(14,"mat-select",4),H("ngModelChange",function(s){return $(o.memberPool.pool_id,s)||(o.memberPool.pool_id=s),s}),D(15,O7,1,0,"uds-cond-select-search",5)(16,R7,2,2,"mat-option",6),d()(),c(17,"div",7)(18,"span",8)(19,"uds-translate"),g(20,"Enabled?"),d()(),c(21,"mat-slide-toggle",4),H("ngModelChange",function(s){return $(o.memberPool.enabled,s)||(o.memberPool.enabled=s),s}),g(22),d()()()(),c(23,"mat-dialog-actions")(24,"button",9),b("click",function(){return o.cancel()}),c(25,"uds-translate"),g(26,"Cancel"),d()(),c(27,"button",10),b("click",function(){return o.save()}),c(28,"uds-translate"),g(29,"Ok"),d()()()),n&2&&(m(),p("ngIf",!(o.memberPool!=null&&o.memberPool.id)),m(),p("ngIf",o.memberPool==null?null:o.memberPool.id),m(7),U("ngModel",o.memberPool.priority),m(5),U("ngModel",o.memberPool.pool_id),m(),p("ngIf",o.servicePools.length>10),m(),p("ngForOf",o.filtered(o.servicePools,o.servicePoolsFilter)),m(5),U("ngModel",o.memberPool.enabled),m(),P(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[$e,pe,lt,jn,xe,Se,ke,Xe,et,Je,_e,Ae,ft,vt,it,or,le,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]});let i=e;return i})();var P7=i=>["/pools","meta-pools",i];function F7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function N7(i,e){if(i&1&&I(0,"uds-information",17),i&2){let r=_(2);p("value",r.metaPool)("gui",r.gui)}}function L7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Service pools"),d())}function V7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Assigned services"),d())}function j7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Groups"),d())}function B7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Access calendars"),d())}function z7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}function U7(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),c(3,"mat-tab"),D(4,F7,2,0,"ng-template",9),c(5,"div",10),D(6,N7,1,2,"uds-information",11),d()(),c(7,"mat-tab"),D(8,L7,2,0,"ng-template",9),c(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNewMemberPool(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditMemberPool(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteMemberPool(n))}),d()()(),c(11,"mat-tab"),D(12,V7,2,0,"ng-template",9),c(13,"div",10)(14,"uds-table",13),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomAssigned(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAssigned(n))}),d()()(),c(15,"mat-tab"),D(16,j7,2,0,"ng-template",9),c(17,"div",10)(18,"uds-table",14),b("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))}),d()()(),c(19,"mat-tab"),D(20,B7,2,0,"ng-template",9),c(21,"div",10)(22,"uds-table",15),b("newAction",function(n){y(r);let o=_();return w(o.onNewAccessCalendar(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditAccessCalendar(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAccessCalendar(n))})("loaded",function(n){y(r);let o=_();return w(o.onAccessCalendarLoad(n))}),d()()(),c(23,"mat-tab"),D(24,z7,2,0,"ng-template",9),c(25,"div",10),I(26,"uds-logs-table",16),d()()()()()}if(i&2){let r=_();m(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),m(4),p("ngIf",r.metaPool&&r.gui),m(4),p("rest",r.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("customButtons",r.customButtons)("tableId","metaPools-d-members"+r.metaPool.id)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+r.metaPool.id)("customButtons",r.customButtonsAssignedServices)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+r.metaPool.id)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+r.metaPool.id)("pageSize",r.api.config.admin.page_size)("onItem",r.processsCalendarItem),m(4),p("rest",r.rest.metaPools)("itemId",r.metaPool.id)("tableId","metaPools-d-log"+r.metaPool.id)("pageSize",r.api.config.admin.page_size)}}var tA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[Ei.getGotoButton(Vd,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:tw,type:mt.SINGLE_SELECT},{id:"log",html:Zf,type:mt.SINGLE_SELECT},Ei.getGotoButton(jd,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1,this.memberPools={},this.memberUserServices={},this.groups={},this.accessCalendars={}}ngOnInit(){return q(this,null,function*(){let t=this.route.snapshot.paramMap.get("metapool");if(!t)return;let n=yield this.rest.metaPools.get(t),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(t,"pools"),this.memberUserServices=this.rest.metaPools.detail(t,"services"),this.groups=this.rest.metaPools.detail(t,"groups"),this.accessCalendars=this.rest.metaPools.detail(t,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(t){return q(this,null,function*(){(yield nw.launch(this.api,this.memberPools))===!0&&t.table.overview()})}onEditMemberPool(t){return q(this,null,function*(){(yield nw.launch(this.api,this.memberPools,t.table.selection.selected[0]))===!0&&t.table.overview()})}onDeleteMemberPool(t){return q(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))})}onCustomAssigned(t){return q(this,null,function*(){let n=t.table.selection.selected[0];if(t.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield qf.launch(this.api,n,this.memberUserServices))===!0&&t.table.overview()}else t.param.id==="log"&&Hd.launch(this.api,n,this.memberUserServices)})}onDeleteAssigned(t){return q(this,null,function*(){Xf.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))})}onNewGroup(t){return q(this,null,function*(){(yield Yf.launch(this.api,this.metaPool.id,this.groups))===!0&&t.table.overview()})}onDeleteGroup(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))}onNewAccessCalendar(t){Hl.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>t.table.overview())}onEditAccessCalendar(t){Hl.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteAccessCalendar(t){t.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)}onAccessCalendarLoad(t){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{let o=t.table.dataSource.data.filter(a=>!0);o.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=o})}processElement(t){t.enabled=this.api.boolAsHumanString(t.enabled)}processsCalendarItem(t){t.name=t.calendar,t.atStart=this.api.boolAsHumanString(t.atStart)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","tableId","pageSize"],["icon","calendars",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","tableId","pageSize","onItem"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,U7,27,31,"div",5),d()),n&2&&(m(2),p("routerLink",Vi(4,P7,o.metaPool?o.metaPool.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/metas.png"),Ie),m(),P(" ",o.metaPool==null?null:o.metaPool.name," "),m(),p("ngIf",o.metaPool))},dependencies:[pe,gi,ei,ti,oi,le,Te,lo,co],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]});let i=e;return i})();var ow=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New pool group"),!1).then(()=>t.table.overview())}onEdit(t){return q(this,null,function*(){this.api.gui.forms.typedEditForm(t,django.gettext("Edit pool group"),!1)})}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete pool group"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]});let i=e;return i})();var rw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))}onDetail(t){this.api.navigation.gotoCalendarDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();var H7=["mat-calendar-body",""];function $7(i,e){return this._trackRow(e)}var cA=(i,e)=>e.id;function W7(i,e){if(i&1&&(c(0,"tr",0)(1,"td",3),g(2),d()()),i&2){let r=_();m(),xi("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ie("colspan",r.numCols),m(),P(" ",r.label," ")}}function G7(i,e){if(i&1&&(c(0,"td",3),g(1),d()),i&2){let r=_(2);xi("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ie("colspan",r._firstRowOffset),m(),P(" ",r._firstRowOffset>=r.labelMinRequiredCells?r.label:""," ")}}function q7(i,e){if(i&1){let r=A();c(0,"td",6)(1,"button",7),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a._cellClicked(o,n))})("focus",function(n){let o=y(r).$implicit,a=_(2);return w(a._emitActiveDateChange(o,n))}),c(2,"span",8),g(3),d(),I(4,"span",9),d()()}if(i&2){let r=e.$implicit,t=e.$index,n=_().$index,o=_();xi("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),ie("data-mat-row",n)("data-mat-col",t),m(),ne("mat-calendar-body-disabled",!r.enabled)("mat-calendar-body-active",o._isActiveCell(n,t))("mat-calendar-body-range-start",o._isRangeStart(r.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(r.compareValue))("mat-calendar-body-in-range",o._isInRange(r.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(r.compareValue,n,t))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(r.compareValue,n,t))("mat-calendar-body-comparison-start",o._isComparisonStart(r.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(r.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(r.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(r.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(r.compareValue))("mat-calendar-body-in-preview",o._isInPreview(r.compareValue)),p("ngClass",r.cssClasses)("tabindex",o._isActiveCell(n,t)?0:-1),ie("aria-label",r.ariaLabel)("aria-disabled",!r.enabled||null)("aria-pressed",o._isSelected(r.compareValue))("aria-current",o.todayValue===r.compareValue?"date":null)("aria-describedby",o._getDescribedby(r.compareValue)),m(),ne("mat-calendar-body-selected",o._isSelected(r.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(r.compareValue))("mat-calendar-body-today",o.todayValue===r.compareValue),m(),P(" ",r.displayValue," ")}}function Y7(i,e){if(i&1&&(c(0,"tr",1),D(1,G7,2,6,"td",4),br(2,q7,5,48,"td",5,cA),d()),i&2){let r=e.$implicit,t=e.$index,n=_();m(),De(t===0&&n._firstRowOffset?1:-1),m(),yr(r)}}function Q7(i,e){if(i&1&&(c(0,"th",2)(1,"span",6),g(2),d(),c(3,"span",3),g(4),d()()),i&2){let r=e.$implicit;m(2),He(r.long),m(2),He(r.narrow)}}var K7=["*"];function Z7(i,e){}function X7(i,e){if(i&1){let r=A();c(0,"mat-month-view",4),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("_userSelection",function(n){y(r);let o=_();return w(o._dateSelected(n))})("dragStarted",function(n){y(r);let o=_();return w(o._dragStarted(n))})("dragEnded",function(n){y(r);let o=_();return w(o._dragEnded(n))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName)("activeDrag",r._activeDrag)}}function J7(i,e){if(i&1){let r=A();c(0,"mat-year-view",5),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("monthSelected",function(n){y(r);let o=_();return w(o._monthSelectedInYearView(n))})("selectedChange",function(n){y(r);let o=_();return w(o._goToDateInView(n,"month"))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function e9(i,e){if(i&1){let r=A();c(0,"mat-multi-year-view",6),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("yearSelected",function(n){y(r);let o=_();return w(o._yearSelectedInMultiYearView(n))})("selectedChange",function(n){y(r);let o=_();return w(o._goToDateInView(n,"year"))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function t9(i,e){}var i9=["button"],n9=[[["","matDatepickerToggleIcon",""]]],o9=["[matDatepickerToggleIcon]"];function r9(i,e){i&1&&(vi(),c(0,"svg",2),I(1,"path",3),d())}var qd=(()=>{let e=class e{constructor(){this.changes=new W,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(t,n){return`${t} \u2013 ${n}`}formatYearRangeLabel(t,n){return`${t} to ${n}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),a9=0,Wd=class{constructor(e,r,t,n,o={},a=e,s){this.value=e,this.displayValue=r,this.ariaLabel=t,this.enabled=n,this.cssClasses=o,this.compareValue=a,this.rawValue=s,this.id=a9++}},s9=1,iA=Bi({passive:!1,capture:!0}),Ma=Bi({passive:!0,capture:!0}),Jf=Bi({passive:!0}),Wl=(()=>{let e=class e{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(t,n){this._elementRef=t,this._ngZone=n,this._platform=k(je),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new T,this.previewChange=new T,this.activeDateChange=new T,this.dragStarted=new T,this.dragEnded=new T,this._didDragSinceMouseDown=!1,this._injector=k(Pe),this._trackRow=o=>o,this._enterHandler=o=>{if(this._skipNextFocus&&o.type==="focus"){this._skipNextFocus=!1;return}if(o.target&&this.isRange){let a=this._getCellFromElement(o.target);a&&this._ngZone.run(()=>this.previewChange.emit({value:a.enabled?a:null,event:o}))}},this._touchmoveHandler=o=>{if(!this.isRange)return;let a=nA(o),s=a?this._getCellFromElement(a):null;a!==o.target&&(this._didDragSinceMouseDown=!0),sw(o.target)&&o.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:o}))},this._leaveHandler=o=>{this.previewEnd!==null&&this.isRange&&(o.type!=="blur"&&(this._didDragSinceMouseDown=!0),o.target&&this._getCellFromElement(o.target)&&!(o.relatedTarget&&this._getCellFromElement(o.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o})))},this._mousedownHandler=o=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let a=o.target&&this._getCellFromElement(o.target);!a||!this._isInRange(a.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:a.rawValue,event:o})})},this._mouseupHandler=o=>{if(!this.isRange)return;let a=sw(o.target);if(!a){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:o})});return}a.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(a);this.dragEnded.emit({value:s?.rawValue??null,event:o})})},this._touchendHandler=o=>{let a=nA(o);a&&this._mouseupHandler({target:a})},this._id=`mat-calendar-body-${s9++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,n.runOutsideAngular(()=>{let o=t.nativeElement;o.addEventListener("touchmove",this._touchmoveHandler,iA),o.addEventListener("mouseenter",this._enterHandler,Ma),o.addEventListener("focus",this._enterHandler,Ma),o.addEventListener("mouseleave",this._leaveHandler,Ma),o.addEventListener("blur",this._leaveHandler,Ma),o.addEventListener("mousedown",this._mousedownHandler,Jf),o.addEventListener("touchstart",this._mousedownHandler,Jf),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(t,n){this._didDragSinceMouseDown||t.enabled&&this.selectedValueChange.emit({value:t.value,event:n})}_emitActiveDateChange(t,n){t.enabled&&this.activeDateChange.emit({value:t.value,event:n})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){let n=t.numCols,{rows:o,numCols:a}=this;(t.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?a-o[0].length:0),(t.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/a}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/a}%`)}ngOnDestroy(){let t=this._elementRef.nativeElement;t.removeEventListener("touchmove",this._touchmoveHandler,iA),t.removeEventListener("mouseenter",this._enterHandler,Ma),t.removeEventListener("focus",this._enterHandler,Ma),t.removeEventListener("mouseleave",this._leaveHandler,Ma),t.removeEventListener("blur",this._leaveHandler,Ma),t.removeEventListener("mousedown",this._mousedownHandler,Jf),t.removeEventListener("touchstart",this._mousedownHandler,Jf),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(t,n){let o=t*this.numCols+n;return t&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(t=!0){ni(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(t||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(t){return lw(t,this.startValue,this.endValue)}_isRangeEnd(t){return cw(t,this.startValue,this.endValue)}_isInRange(t){return dw(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return lw(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,n,o){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let a=this.rows[n][o-1];if(!a){let s=this.rows[n-1];a=s&&s[s.length-1]}return a&&!this._isRangeEnd(a.compareValue)}_isComparisonBridgeEnd(t,n,o){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let a=this.rows[n][o+1];if(!a){let s=this.rows[n+1];a=s&&s[0]}return a&&!this._isRangeStart(a.compareValue)}_isComparisonEnd(t){return cw(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return dw(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return lw(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return cw(t,this.previewStart,this.previewEnd)}_isInPreview(t){return dw(t,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(t){return this.isRange?this.startValue===t&&this.endValue===t?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===t?this._startDateLabelId:this.endValue===t?this._endDateLabelId:null:null}_getCellFromElement(t){let n=sw(t);if(n){let o=n.getAttribute("data-mat-row"),a=n.getAttribute("data-mat-col");if(o&&a)return this.rows[parseInt(o)][parseInt(a)]}return null}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Z))},e.\u0275cmp=S({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[Qe,re],attrs:H7,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(n,o){n&1&&(D(0,W7,3,6,"tr",0),br(1,Y7,4,1,"tr",1,$7,!0),c(3,"label",2),g(4),d(),c(5,"label",2),g(6),d()),n&2&&(De(o._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0});let i=e;return i})();function aw(i){return i?.nodeName==="TD"}function sw(i){let e;return aw(i)?e=i:aw(i.parentNode)?e=i.parentNode:aw(i.parentNode?.parentNode)&&(e=i.parentNode.parentNode),e?.getAttribute("data-mat-row")!=null?e:null}function lw(i,e,r){return r!==null&&e!==r&&i=e&&i===r}function dw(i,e,r,t){return t&&e!==null&&r!==null&&e!==r&&i>=e&&i<=r}function nA(i){let e=i.changedTouches[0];return document.elementFromPoint(e.clientX,e.clientY)}var uo=class{constructor(e,r){this.start=e,this.end=r}},Gd=(()=>{let e=class e{constructor(t,n){this.selection=t,this._adapter=n,this._selectionChanged=new W,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,n){let o=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}};e.\u0275fac=function(n){Ja()},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),l9=(()=>{let e=class e extends Gd{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let t=new e(this._adapter);return t.updateSelection(this.selection,this),t}};e.\u0275fac=function(n){return new(n||e)(M(Oi))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function c9(i,e){return i||new l9(e)}var dA={provide:Gd,deps:[[new Qn,new yo,Gd],Oi],useFactory:c9};var uA=new O("MAT_DATE_RANGE_SELECTION_STRATEGY");var uw=7,d9=0,oA=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof uo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a,s){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rangeStrategy=s,this._rerenderSubscription=ve.EMPTY,this.activeDrag=null,this.selectedChange=new T,this._userSelection=new T,this.dragStarted=new T,this.dragEnded=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnChanges(t){let n=t.comparisonStart||t.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),t.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){let n=t.value,o=this._getDateFromDayOfMonth(n),a,s;this._selected instanceof uo?(a=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):a=s=this._getDateInCurrentMonth(this._selected),(a!==n||s!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&t.preventDefault();return;case 27:this._previewEnd!=null&&!Ot(t)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:t}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t})),t.preventDefault(),t.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(uw+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%uw,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:t,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,a=this._rangeStrategy.createPreview(o,this.selected,t);if(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end),this.activeDrag&&o){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,t);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(t){if(this.activeDrag)if(t.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,t.value,t.event);this.dragEnded.emit({value:n??null,event:t.event})}else this.dragEnded.emit({value:null,event:t.event})}_getDateFromDayOfMonth(t){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t)}_initWeekdays(){let t=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),a=this._dateAdapter.getDayOfWeekNames("long").map((s,l)=>({long:s,narrow:n[l],id:d9++}));this._weekdays=a.slice(t).concat(a.slice(0,t))}_createWeekCells(){let t=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,a=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,n){return!!(t&&n&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n))}_getCellCompareValue(t){if(t){let n=this._dateAdapter.getYear(t),o=this._dateAdapter.getMonth(t),a=this._dateAdapter.getDate(t);return new Date(n,o,a).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(t){t instanceof uo?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}_clearPreview(){this._previewStart=this._previewEnd=null}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(ga,8),h(Oi,8),h(Tt,8),h(uA,8))},e.\u0275cmp=S({type:e,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&ce(Wl,5),n&2){let a;Q(a=K())&&(o._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[Qe,re],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(n,o){n&1&&(c(0,"table",0)(1,"thead",1)(2,"tr"),br(3,Q7,5,2,"th",2,cA),d(),c(5,"tr",3),I(6,"th",4),d()(),c(7,"tbody",5),b("selectedValueChange",function(s){return o._dateSelected(s)})("activeDateChange",function(s){return o._updateActiveDate(s)})("previewChange",function(s){return o._previewChanged(s)})("dragStarted",function(s){return o.dragStarted.emit(s)})("dragEnded",function(s){return o._dragEnded(s)})("keyup",function(s){return o._handleCalendarBodyKeyup(s)})("keydown",function(s){return o._handleCalendarBodyKeydown(s)}),d()()),n&2&&(m(3),yr(o._weekdays),m(4),p("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[Wl],encapsulation:2,changeDetection:0});let i=e;return i})(),zn=24,mw=4,rA=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),mA(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof uo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o){this._changeDetectorRef=t,this._dateAdapter=n,this._dir=o,this._rerenderSubscription=ve.EMPTY,this.selectedChange=new T,this.yearSelected=new T,this.activeDateChange=new T,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let n=this._dateAdapter.getYear(this._activeDate)-$d(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){let n=t.value,o=this._dateAdapter.createDate(n,0,1),a=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-mw);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mw);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-$d(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,zn-$d(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-zn*10:-zn);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?zn*10:zn);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return $d(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(t){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,n,1));return this._dateAdapter.createDate(t,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(t){let n=this._dateAdapter.createDate(t,0,1),o=this._dateAdapter.getYearName(n),a=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new Wd(t,o,o,this._shouldEnableYear(t),a)}_shouldEnableYear(t){if(t==null||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){t instanceof uo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rerenderSubscription=ve.EMPTY,this.selectedChange=new T,this.monthSelected=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){let n=t.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let a=this._getDateFromMonth(n);this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,t[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_getDateFromMonth(t){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(t,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),a=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(o,"year"):void 0;return new Wd(t,n.toLocaleUpperCase(),a,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){let n=this._dateAdapter.getYear(this.activeDate);if(t==null||this._isYearAndMonthAfterMaxDate(n,t)||this._isYearAndMonthBeforeMinDate(n,t))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,t,1);for(let a=o;this._dateAdapter.getMonth(a)==t;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isYearAndMonthAfterMaxDate(t,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),a=this._dateAdapter.getMonth(this.maxDate);return t>o||t===o&&n>a}return!1}_isYearAndMonthBeforeMinDate(t,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),a=this._dateAdapter.getMonth(this.minDate);return t{let e=class e{constructor(t,n,o,a,s){this._intl=t,this.calendar=n,this._dateAdapter=o,this._dateFormats=a,this._id=`mat-calendar-header-${m9++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-zn)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:zn)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n):mA(this._dateAdapter,t,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-$d(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+zn-1,a=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[a,s]}};e.\u0275fac=function(n){return new(n||e)(h(qd),h(Wt(()=>hw)),h(Oi,8),h(ga,8),h(ue))},e.\u0275cmp=S({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[re],ngContentSelectors:K7,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(n,o){n&1&&(Ue(),c(0,"div",0)(1,"div",1)(2,"label",2),g(3),d(),c(4,"button",3),b("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),g(6),d(),vi(),c(7,"svg",5),I(8,"polygon",6),d()(),ea(),I(9,"div",7),se(10),c(11,"button",8),b("click",function(){return o.previousClicked()}),d(),c(12,"button",9),b("click",function(){return o.nextClicked()}),d()()()),n&2&&(m(2),p("id",o._periodButtonLabelId),m(),He(o.periodButtonDescription),m(),ie("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),He(o.periodButtonText),m(),ne("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),p("disabled",!o.previousEnabled()),ie("aria-label",o.prevButtonLabel),m(),p("disabled",!o.nextEnabled()),ie("aria-label",o.nextButtonLabel))},dependencies:[ke,Gi],encapsulation:2,changeDetection:0});let i=e;return i})(),hw=(()=>{let e=class e{get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){t instanceof uo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){let n=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&this.viewChanged.emit(n)}constructor(t,n,o,a){this._dateAdapter=n,this._dateFormats=o,this._changeDetectorRef=a,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new T,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this._userSelection=new T,this._userDragDrop=new T,this._activeDrag=null,this.stateChanges=new W,this._intlChanges=t.changes.subscribe(()=>{a.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Sn(this.headerComponent||pA),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){let n=t.minDate&&!this._dateAdapter.sameDate(t.minDate.previousValue,t.minDate.currentValue)?t.minDate:void 0,o=t.maxDate&&!this._dateAdapter.sameDate(t.maxDate.previousValue,t.maxDate.currentValue)?t.maxDate:void 0,a=n||o||t.dateFilter;if(a&&!a.firstChange){let s=this._getCurrentViewComponent();s&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(t){let n=t.value;(this.selected instanceof uo||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,n){this.activeDate=t,this.currentView=n}_dragStarted(t){this._activeDrag=t}_dragEnded(t){this._activeDrag&&(t.value&&this._userDragDrop.emit(t),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};e.\u0275fac=function(n){return new(n||e)(h(qd),h(Oi,8),h(ga,8),h(ue))},e.\u0275cmp=S({type:e,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&(ce(oA,5),ce(aA,5),ce(rA,5)),n&2){let a;Q(a=K())&&(o.monthView=a.first),Q(a=K())&&(o.yearView=a.first),Q(a=K())&&(o.multiYearView=a.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[ye([dA]),Qe,re],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(n,o){if(n&1&&(D(0,Z7,0,0,"ng-template",0),c(1,"div",1),D(2,X7,1,11,"mat-month-view",2)(3,J7,1,6,"mat-year-view",3)(4,e9,1,6,"mat-multi-year-view",3),d()),n&2){let a;p("cdkPortalOutlet",o._calendarHeaderPortal),m(2),De((a=o.currentView)==="month"?2:a==="year"?3:a==="multi-year"?4:-1)}},dependencies:[nn,op,oA,aA,rA],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})(),sA={transformPanel:ci("transformPanel",[xt("void => enter-dropdown",Et("120ms cubic-bezier(0, 0, 0.2, 1)",va([Me({opacity:0,transform:"scale(1, 0.8)"}),Me({opacity:1,transform:"scale(1, 1)"})]))),xt("void => enter-dialog",Et("150ms cubic-bezier(0, 0, 0.2, 1)",va([Me({opacity:0,transform:"scale(0.7)"}),Me({transform:"none",opacity:1})]))),xt("* => void",Et("100ms linear",Me({opacity:0})))]),fadeInCalendar:ci("fadeInCalendar",[Pt("void",Me({opacity:0})),Pt("enter",Me({opacity:1})),xt("void => *",Et("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},h9=0,fA=new O("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}});function p9(i){return()=>i.scrollStrategies.reposition()}var f9={provide:fA,deps:[Ct],useFactory:p9},gA=(()=>{let e=class e{constructor(t,n,o,a,s,l){this._elementRef=t,this._changeDetectorRef=n,this._globalModel=o,this._dateAdapter=a,this._rangeSelectionStrategy=s,this._subscriptions=new ve,this._animationDone=new W,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=l.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){let n=this._model.selection,o=t.value,a=n instanceof uo;if(a&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(o,n,t.event);this._model.updateSelection(s,this)}else o&&(a||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(t){this._model.updateSelection(t.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(t){this._isAnimating=t.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(t,n){this._model=t?this._globalModel.clone():this._globalModel,this._actionsPortal=t,n&&this._changeDetectorRef.detectChanges()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(ue),h(Gd),h(Oi),h(uA,8),h(qd))},e.\u0275cmp=S({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&ce(hw,5),n&2){let a;Q(a=K())&&(o._calendar=a.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(n,o){n&1&&Mc("@transformPanel.start",function(s){return o._handleAnimationEvent(s)})("@transformPanel.done",function(s){return o._handleAnimationEvent(s)}),n&2&&(Ic("@transformPanel",o._animationState),qt(o.color?"mat-"+o.color:""),ne("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[re],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){if(n&1&&(c(0,"div",0)(1,"mat-calendar",1),b("yearSelected",function(s){return o.datepicker._selectYear(s)})("monthSelected",function(s){return o.datepicker._selectMonth(s)})("viewChanged",function(s){return o.datepicker._viewChanged(s)})("_userSelection",function(s){return o._handleUserSelection(s)})("_userDragDrop",function(s){return o._handleUserDragDrop(s)}),d(),D(2,t9,0,0,"ng-template",2),c(3,"button",3),b("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),g(4),d()()),n&2){let a;ne("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),ie("aria-modal",!0)("aria-labelledby",(a=o._dialogLabelId)!==null&&a!==void 0?a:void 0),m(),qt(o.datepicker.panelClass),p("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),p("cdkPortalOutlet",o._actionsPortal),m(),ne("cdk-visually-hidden",!o._closeButtonFocused),p("color",o.color||"primary"),m(),He(o._closeButtonText)}},dependencies:[$1,hw,nn,ke],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[sA.transformPanel,sA.fadeInCalendar]},changeDetection:0});let i=e;return i})(),lA=(()=>{let e=class e{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=_1(t)}get opened(){return this._opened}set opened(t){t?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(t,n,o,a,s,l,u){this._overlay=t,this._viewContainerRef=o,this._dateAdapter=s,this._dir=l,this._model=u,this._inputStateChanges=ve.EMPTY,this._document=k(ae),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this.openedStream=new T,this.closedStream=new T,this._opened=!1,this.id=`mat-datepicker-${h9++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new W,this._injector=k(Pe),this._changeDetectorRef=k(ue),this._dateAdapter,this._scrollStrategy=a,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(t){let n=t.xPosition||t.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof fd&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal,this._actionsPortal=t,this._componentRef?.instance._assignActions(t,!0)}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=ca(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let t=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",n=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:a}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(Rt(1)).subscribe(()=>{let s=this._document.activeElement;t&&(!s||s===this._document.activeElement||a.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}t?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._dialogLabelId=this.datepickerInput.getOverlayLabelId(),t._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let t=this.touchUi,n=new Sn(gA,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new En({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${t?"dialog":"popup"}`}));this._getCloseStream(o).subscribe(a=>{a&&a.preventDefault(),this.close()}),o.keydownEvents().subscribe(a=>{let s=a.keyCode;(s===38||s===40||s===37||s===39||s===33||s===34)&&a.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),t||ni(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",a=this.yPosition==="above"?"bottom":"top",s=a==="top"?"bottom":"top";return t.withPositions([{originX:n,originY:s,overlayX:n,overlayY:a},{originX:n,originY:a,overlayX:n,overlayY:s},{originX:o,originY:s,overlayX:o,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:s}])}_getCloseStream(t){let n=["ctrlKey","shiftKey","metaKey"];return yt(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(qe(o=>o.keyCode===27&&!Ot(o)||this.datepickerInput&&Ot(o,"altKey")&&o.keyCode===38&&n.every(a=>!Ot(o,a)))))}};e.\u0275fac=function(n){return new(n||e)(h(Ct),h(Z),h(wt),h(fA),h(Oi,8),h(Tt,8),h(Gd))},e.\u0275dir=N({type:e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",Y],disabled:[2,"disabled","disabled",Y],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",Y],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",Y]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[he,Qe]});let i=e;return i})(),eg=(()=>{let e=class e extends lA{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275cmp=S({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[ye([dA,{provide:lA,useExisting:e}]),be,re],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0});let i=e;return i})(),$l=class{constructor(e,r){this.target=e,this.targetElement=r,this.value=this.target.value}},g9=(()=>{let e=class e{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){let n=t,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(n=>{if(this._shouldHandleChangeEvent(n)){let o=this._getValueFromModel(n.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new $l(this,this._elementRef.nativeElement)),this.dateChange.emit(new $l(this,this._elementRef.nativeElement))}})}constructor(t,n,o){this._elementRef=t,this._dateAdapter=n,this._dateFormats=o,this.dateChange=new T,this.dateInput=new T,this.stateChanges=new W,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=ve.EMPTY,this._localeSubscription=ve.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),l=this._getMinDate();return!l||!s||this._dateAdapter.compareDate(l,s)<=0?null:{matDatepickerMin:{min:l,actual:s}}},this._maxValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),l=this._getMaxDate();return!l||!s||this._dateAdapter.compareDate(l,s)>=0?null:{matDatepickerMax:{max:l,actual:s}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){_9(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){let n=["ctrlKey","shiftKey","metaKey"];Ot(t,"altKey")&&t.keyCode===40&&n.every(a=>!Ot(t,a))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){let n=this._lastValueValid,o=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(t&&!this.value&&this._cvaOnChange(o),n!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new $l(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new $l(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t!=null?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){let n=this._getDateFilter();return!n||n(t)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Oi,8),h(ga,8))},e.\u0275dir=N({type:e,inputs:{value:"value",disabled:[2,"disabled","disabled",Y]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[he,Qe]});let i=e;return i})();function _9(i,e){let r=Object.keys(i);for(let t of r){let{previousValue:n,currentValue:o}=i[t];if(e.isDateInstance(n)&&e.isDateInstance(o)){if(!e.sameDate(n,o))return!0}else return!0}return!1}var v9={provide:Yi,useExisting:Wt(()=>Gl),multi:!0},b9={provide:oo,useExisting:Wt(()=>Gl),multi:!0},Gl=(()=>{let e=class e extends g9{set matDatepicker(t){t&&(this._datepicker=t,this._ariaOwns.set(t.opened?t.id:null),this._closedSubscription=t.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=t.openedStream.subscribe(()=>{this._ariaOwns.set(t.id)}),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}get max(){return this._max}set max(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){let n=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}constructor(t,n,o,a){super(t,n,o),this._formField=a,this._closedSubscription=ve.EMPTY,this._openedSubscription=ve.EMPTY,this._ariaOwns=lE(null),this._validator=ir.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Oi,8),h(ga,8),h(To,8))},e.\u0275dir=N({type:e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&b("input",function(s){return o._onInput(s.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(s){return o._onKeydown(s)}),n&2&&(Di("disabled",o.disabled),ie("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",o._ariaOwns())("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[ye([v9,b9,{provide:jy,useExisting:e}]),be]});let i=e;return i})(),y9=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let i=e;return i})(),Yd=(()=>{let e=class e{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=t}constructor(t,n,o){this._intl=t,this._changeDetectorRef=n,this._stateChanges=ve.EMPTY;let a=Number(o);this.tabIndex=a||a===0?a:null}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){let t=this.datepicker?this.datepicker.stateChanges:oe(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:oe(),o=this.datepicker?yt(this.datepicker.openedStream,this.datepicker.closedStream):oe();this._stateChanges.unsubscribe(),this._stateChanges=yt(this._intl.changes,t,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(qd),h(ue),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,y9,5),n&2){let s;Q(s=K())&&(o._customIcon=s.first)}},viewQuery:function(n,o){if(n&1&&ce(i9,5),n&2){let a;Q(a=K())&&(o._button=a.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&b("click",function(s){return o._open(s)}),n&2&&(ie("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),ne("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Y],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[he,Qe,re],ngContentSelectors:o9,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(n,o){n&1&&(Ue(n9),c(0,"button",1,0),D(2,r9,2,0,":svg:svg",2),se(3),d()),n&2&&(p("disabled",o.disabled)("disableRipple",o.disableRipple),ie("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),m(2),De(o._customIcon?-1:2))},dependencies:[Gi],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let i=e;return i})();var _A=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[qd,f9],imports:[Si,tr,rn,Ml,Vn,fe,gA,Yd,pA,io]});let i=e;return i})();var w9=["button"],C9=["*"];function x9(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}function D9(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}var bA=new O("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:S9});function S9(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var yA=new O("MatButtonToggleGroup"),E9={provide:Yi,useExisting:Wt(()=>fw),multi:!0},wA=0,tg=class{constructor(e,r){this.source=e,this.value=r}},fw=(()=>{let e=class e{get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(n=>n.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}constructor(t,n,o){this._changeDetector=t,this._dir=o,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${wA++}`,this.valueChange=new T,this.change=new T,this.appearance=n&&n.appearance?n.appearance:"standard",this.hideSingleSelectionIndicator=n?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=n?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Eo(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled)return;let o=t.target.id,a=this._buttonToggles.toArray().findIndex(l=>l.buttonId===o),s=null;switch(t.keyCode){case 32:case 13:s=this._buttonToggles.get(a)||null;break;case 38:s=this._getNextButton(a,-1);break;case 37:s=this._getNextButton(a,this.dir==="ltr"?-1:1);break;case 40:s=this._getNextButton(a,1);break;case 39:s=this._getNextButton(a,this.dir==="ltr"?1:-1);break;default:return}s&&(t.preventDefault(),s._onButtonClick(),s.focus())}_emitChangeEvent(t){let n=new tg(t,this.value);this._rawValue=n.value,this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(t,n,o=!1,a=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?n?this._selectionModel.select(t):this._selectionModel.deselect(t):a=!0,a?Promise.resolve().then(()=>this._updateModelValue(t,o)):this._updateModelValue(t,o)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(n=>t.value!=null&&n===t.value):t.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let t=0;tthis._selectValue(n))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t){let n=this._buttonToggles.find(o=>o.value!=null&&o.value===t);n&&(n.checked=!0,this._selectionModel.select(n),this.multiple||(n.tabIndex=0))}_updateModelValue(t,n){n&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(bA,8),h(Tt,8))},e.\u0275dir=N({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,ig,5),n&2){let s;Q(s=K())&&(o._buttonToggles=s)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._keydown(s)}),n&2&&(ie("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),ne("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",Y],value:"value",multiple:[2,"multiple","multiple",Y],disabled:[2,"disabled","disabled",Y],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",Y]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[ye([E9,{provide:yA,useExisting:e}]),he]});let i=e;return i})(),ig=(()=>{let e=class e{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(t){this._tabIndex=t,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}constructor(t,n,o,a,s,l){this._changeDetectorRef=n,this._elementRef=o,this._focusMonitor=a,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T;let u=Number(s);this.tabIndex=u||u===0?u:null,this.buttonToggleGroup=t,this.appearance=l&&l.appearance?l.appearance:"standard"}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${wA++}`,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let n=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);n&&(n.tabIndex=-1),this.tabIndex=0}this.change.emit(new tg(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};e.\u0275fac=function(n){return new(n||e)(h(yA,8),h(ue),h(G),h(wi),mi("tabindex"),h(bA,8))},e.\u0275cmp=S({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&ce(w9,5),n&2){let a;Q(a=K())&&(o._buttonElement=a.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()}),n&2&&(ie("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),ne("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",Y],appearance:"appearance",checked:[2,"checked","checked",Y],disabled:[2,"disabled","disabled",Y]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[he,re],ngContentSelectors:C9,decls:8,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){if(n&1){let a=A();Ue(),c(0,"button",1,0),b("click",function(){return y(a),w(o._onButtonClick())}),c(2,"span",2),D(3,x9,1,1,"mat-pseudo-checkbox",3)(4,D9,1,1,"mat-pseudo-checkbox",3),se(5),d()(),I(6,"span",4)(7,"span",5)}if(n&2){let a=Ce(1);p("id",o.buttonId)("disabled",o.disabled||null),ie("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(3),De(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),m(),De(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),m(3),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Tn,Yb],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-standard-button-toggle-selected-state-text-color )}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-legacy-button-toggle-selected-state-text-color )}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-legacy-button-toggle-disabled-state-text-color )}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font);font-size:var(--mat-standard-button-toggle-label-text-size);line-height:var(--mat-standard-button-toggle-label-text-line-height);font-weight:var(--mat-standard-button-toggle-label-text-weight);letter-spacing:var(--mat-standard-button-toggle-label-text-tracking)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-standard-button-toggle-disabled-selected-state-text-color )}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape);border-bottom-right-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape);border-bottom-left-radius:var(--mat-standard-button-toggle-shape)}"],encapsulation:2,changeDetection:0});let i=e;return i})(),CA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[fe,Tr,ig,fe]});let i=e;return i})();function M9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit rule"),d())}function T9(i,e){i&1&&(c(0,"uds-translate"),g(1,"New rule"),d())}function k9(i,e){if(i&1&&(c(0,"mat-option",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function A9(i,e){if(i&1&&(c(0,"mat-option",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function O9(i,e){if(i&1&&(c(0,"mat-button-toggle",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function R9(i,e){if(i&1){let r=A();c(0,"div",23)(1,"span",24)(2,"uds-translate"),g(3,"Weekdays"),d()(),c(4,"mat-button-toggle-group",25),H("ngModelChange",function(n){y(r);let o=_();return $(o.wDays,n)||(o.wDays=n),w(n)}),D(5,O9,2,2,"mat-button-toggle",10),d()()}if(i&2){let r=_();m(4),U("ngModel",r.wDays),m(),p("ngForOf",r.weekDays)}}function P9(i,e){if(i&1){let r=A();c(0,"mat-form-field",11)(1,"mat-label")(2,"uds-translate"),g(3,"Repeat every"),d()(),c(4,"input",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.rule.interval,n)||(o.rule.interval=n),w(n)}),d(),c(5,"div",26),g(6),d()()}if(i&2){let r=_();m(4),U("ngModel",r.rule.interval),m(2),P("\xA0",r.frequency(),"")}}var ng={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")],NEVER:["","",django.gettext("Never")]},og={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},xA=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],DA=(i,e=!1)=>{let r=new Array;for(let t=0;t<7;t++)i&1&&r.push(xA[t].substr(0,e?100:3)),i>>=1;return r.length?r.join(", "):django.gettext("(no days)")},SA=i=>{i.frequency==="WEEKDAYS"?i.interval=DA(i.interval):i.interval=i.interval+" "+ng[i.frequency][django.pluralidx(i.interval)],i.duration=i.duration+" "+og[i.duration_unit]},gw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(og).map(s=>({id:s,value:og[s]})),this.freqs=Object.keys(ng).map(s=>({id:s,value:ng[s][2]})),this.weekDays=xA.map((s,l)=>({id:1<{if(this.rule=t,this.startDate=new Date(this.rule.start*1e3),this.startTime=this.startDate.toTimeString().split(":").splice(0,2).join(":"),this.endDate=this.rule.end?new Date(this.rule.end*1e3):null,this.rule.frequency==="WEEKDAYS"){let n=[];for(let o=0;o<7;o++){let a=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let t=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=Kb(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){t=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?t+=" "+DA(this.rule.interval,!0)+" "+django.gettext("of any week"):t+=" "+ +this.rule.interval+" "+this.frequency();let a=new Date(this.rule.start*1e3);t+=", "+django.gettext("from")+" "+ba(n,a),this.rule.end?t+=" "+django.gettext("until")+" "+ba(n,new Date(this.rule.end*1e3)):t+=" "+django.gettext("onwards"),t+=", "+django.gettext("starting at")+" "+a.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?t+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+og[this.rule.duration_unit]:t+=django.gettext("with no duration")}return t.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-calendar-rule"]],decls:73,vars:22,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],[1,"oneThird"],["matInput","","type","time",3,"ngModelChange","ngModel"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf","ngIfAnd"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let a=A();c(0,"h4",2),D(1,M9,2,0,"uds-translate",3)(2,T9,2,0,"uds-translate",3),d(),c(3,"mat-dialog-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Name"),d()(),c(9,"input",5),H("ngModelChange",function(l){return y(a),$(o.rule.name,l)||(o.rule.name=l),w(l)}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),g(13,"Comments"),d()(),c(14,"input",5),H("ngModelChange",function(l){return y(a),$(o.rule.comments,l)||(o.rule.comments=l),w(l)}),d()(),c(15,"h3")(16,"uds-translate"),g(17,"Event"),d()(),c(18,"mat-form-field",6)(19,"mat-label")(20,"uds-translate"),g(21,"Start time"),d()(),c(22,"input",7),H("ngModelChange",function(l){return y(a),$(o.startTime,l)||(o.startTime=l),w(l)}),d()(),c(23,"mat-form-field",6)(24,"mat-label")(25,"uds-translate"),g(26,"Duration"),d()(),c(27,"input",8),H("ngModelChange",function(l){return y(a),$(o.rule.duration,l)||(o.rule.duration=l),w(l)}),d()(),c(28,"mat-form-field",6)(29,"mat-label")(30,"uds-translate"),g(31,"Duration units"),d()(),c(32,"mat-select",9),H("ngModelChange",function(l){return y(a),$(o.rule.duration_unit,l)||(o.rule.duration_unit=l),w(l)}),D(33,k9,2,2,"mat-option",10),d()(),c(34,"h3"),g(35," Repetition "),d(),c(36,"mat-form-field",11)(37,"mat-label")(38,"uds-translate"),g(39," Start date "),d()(),c(40,"input",12),H("ngModelChange",function(l){return y(a),$(o.startDate,l)||(o.startDate=l),w(l)}),d(),I(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),d(),c(44,"mat-form-field",11)(45,"mat-label")(46,"uds-translate"),g(47," Repeat until date "),d()(),c(48,"input",14),H("ngModelChange",function(l){return y(a),$(o.endDate,l)||(o.endDate=l),w(l)}),d(),I(49,"mat-datepicker-toggle",13)(50,"mat-datepicker",null,1),d(),c(52,"div",15)(53,"mat-form-field",11)(54,"mat-label")(55,"uds-translate"),g(56,"Frequency"),d()(),c(57,"mat-select",16),H("ngModelChange",function(l){return y(a),$(o.rule.frequency,l)||(o.rule.frequency=l),w(l)}),b("valueChange",function(){return y(a),w(o.rule.interval=1)}),D(58,A9,2,2,"mat-option",10),d()(),D(59,R9,6,2,"div",17)(60,P9,7,2,"mat-form-field",18),d(),c(61,"h3")(62,"uds-translate"),g(63,"Summary"),d()(),c(64,"div",19),g(65),d()()(),c(66,"mat-dialog-actions")(67,"button",20)(68,"uds-translate"),g(69,"Cancel"),d()(),c(70,"button",21),b("click",function(){return y(a),w(o.save())}),c(71,"uds-translate"),g(72,"Ok"),d()()()}if(n&2){let a=Ce(43),s=Ce(51);m(),p("ngIf",o.rule.id),m(),p("ngIf",!o.rule.id),m(7),U("ngModel",o.rule.name),m(5),U("ngModel",o.rule.comments),m(8),U("ngModel",o.startTime),m(5),U("ngModel",o.rule.duration),m(5),U("ngModel",o.rule.duration_unit),m(),p("ngForOf",o.dunits),m(7),p("matDatepicker",a),U("ngModel",o.startDate),m(),p("for",a),m(7),p("matDatepicker",s),U("ngModel",o.endDate),p("placeholder",o.FOREVER_STRING),m(),p("for",s),m(8),U("ngModel",o.rule.frequency),m(),p("ngForOf",o.freqs),m(),p("ngIf",o.rule.frequency==="WEEKDAYS"),m(),p("ngIf",o.rule.frequency!=="WEEKDAYS")("ngIfAnd",o.rule.frequency!=="NEVER"),m(5),P(" ",o.summary()," "),m(5),p("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[$e,pe,lt,jn,xe,Se,ke,Yt,Xe,et,Je,_e,Ae,ro,ft,vt,it,eg,Gl,Yd,fw,ig,le],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-mdc-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-mdc-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]});let i=e;return i})();var F9=i=>["/pools","calendars",i];function N9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Rules"),d())}function L9(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),D(4,N9,2,0,"ng-template",9),c(5,"div",10)(6,"uds-table",11),b("newAction",function(n){y(r);let o=_();return w(o.onNewRule(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditRule(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteRule(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("rest",r.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","calendars-d-rules"+r.calendar.id)("pageSize",r.api.config.admin.page_size)}}var EA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("calendar");t&&this.rest.calendars.get(t).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(t){gw.launch(this.api,this.calendarRules).subscribe(()=>t.table.overview())}onEditRule(t){gw.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDeleteRule(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))}processElement(t){SA(t)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","pageSize"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,L9,7,7,"div",5),d()),n&2&&(m(2),p("routerLink",Vi(4,F9,o.calendar?o.calendar.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/calendars.png"),Ie),m(),P(" ",o.calendar==null?null:o.calendar.name," "),m(),p("ngIf",o.calendar))},dependencies:[pe,gi,ei,ti,oi,le,Te],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]});let i=e;return i})();var V9='event'+django.gettext("Set time mark")+"",_w=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:V9,type:mt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))}onTimeMark(t){let n=t.table.selection.selected[0];this.api.gui.questionDialog(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).then(o=>{o&&this.rest.accounts.timemark(n.id).then(()=>{this.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})}onDetail(t){this.api.navigation.gotoAccountDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))}processElement(t){t.time_mark=t.time_mark===78793200?django.gettext("No time mark"):zi("SHORT_DATE_FORMAT",t.time_mark)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"customButtonAction","newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("customButtonAction",function(s){return o.onTimeMark(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Te]});let i=e;return i})();var j9=i=>["/pools","accounts",i];function B9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Account usage"),d())}function z9(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),D(4,B9,2,0,"ng-template",9),c(5,"div",10)(6,"uds-table",11),b("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteUsage(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("rest",r.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","account-d-usage"+r.account.id)}}var IA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("account");t&&this.rest.accounts.get(t).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))}processElement(t){t.running=this.api.boolAsHumanString(t.running)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"deleteAction","rest","multiSelect","allowExport","onItem","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,z9,7,6,"div",5),d()),n&2&&(m(2),p("routerLink",Vi(4,j9,o.account?o.account.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/accounts.png"),Ie),m(),P(" ",o.account==null?null:o.account.name," "),m(),p("ngIf",o.account))},dependencies:[pe,gi,ei,ti,oi,le,Te]});let i=e;return i})();function U9(i,e){i&1&&(c(0,"uds-translate"),g(1,"New image for"),d())}function H9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit for"),d())}var vw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.preview="",this.image={id:void 0,data:"",name:""},a.image&&(this.image.id=a.image.id)}static launch(t,n=null){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(t){let n=t.target;if(!n.files||n.files.length===0)return;let o=n.files[0];if(o.size>256*1024){this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));return}if(!["image/jpeg","image/png","image/gif"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"));return}let a=new FileReader;a.onload=s=>{let l=a.result;this.preview=l,this.image.data=l.substr(l.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},a.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(t=>{switch(this.image=t,this.image.data.substr(2)){case"iV":this.preview="data:image/png;base64,"+this.image.data;break;case"/9":this.preview="data:image/jpeg;base64,"+this.image.data;break;default:this.preview="data:image/gif;base64,"+this.image.data}})}background(){let t=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":t,"height.px":n,"background-size":t+"px "+n+"px","background-image":"none"};return this.preview&&(o["background-image"]="url("+this.preview+")"),o}save(){if(!this.image.name||!this.image.data){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"));return}this.rest.gallery.save(this.image).then(()=>{this.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],["type","file",2,"display","none",3,"change"],["matInput","","type","text",3,"click","hidden"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){if(n&1){let a=A();c(0,"h4",1),D(1,U9,2,0,"uds-translate",2)(2,H9,2,0,"uds-translate",2),d(),c(3,"mat-dialog-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Image name"),d()(),c(9,"input",4),H("ngModelChange",function(l){return y(a),$(o.image.name,l)||(o.image.name=l),w(l)}),d()(),c(10,"input",5,0),b("change",function(l){return y(a),w(o.onFileChanged(l))}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Image (click to change)"),d()(),c(16,"input",6),b("click",function(){y(a);let l=Ce(11);return w(l.click())}),d(),c(17,"div",7),b("click",function(){y(a);let l=Ce(11);return w(l.click())}),I(18,"div",8),d()(),c(19,"div",9)(20,"uds-translate"),g(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),g(23," The image will be resized on upload to "),d(),g(24),d()()(),c(25,"mat-dialog-actions")(26,"button",10)(27,"uds-translate"),g(28,"Cancel"),d()(),c(29,"button",11),b("click",function(){return y(a),w(o.save())}),c(30,"uds-translate"),g(31,"Ok"),d()()()}n&2&&(m(),p("ngIf",!o.image.id),m(),p("ngIf",o.image.id),m(7),U("ngModel",o.image.name),m(7),p("hidden",!0),m(2),p("ngStyle",o.background()),m(6),wr(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[pe,eI,lt,xe,Se,ke,Yt,Xe,et,Je,_e,Ae,ft,le],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]});let i=e;return i})();var bw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){vw.launch(this.api).subscribe(()=>t.table.overview())}onEdit(t){vw.launch(this.api,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var MA=nu(Uf());var $9='assessment'+django.gettext("Generate report")+"",TA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n,this.customButtons=[{id:"genreport",html:$9,type:mt.SINGLE_SELECT}]}ngOnInit(){}generateReport(t){return q(this,null,function*(){let n=new Jt;this.api.gui.forms.typedForm(t,django.gettext("Generate report"),!1,[],void 0,t.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let a=yield this.rest.reports.save(o,t.table.selection.selected[0].id),s=a.encoded?window.atob(a.data):a.data,l=s.length,u=new Uint8Array(l);for(let v=0;v{(0,MA.saveAs)(f,a.filename,{autoBom:!1})})})}};e.\u0275fac=function(n){return new(n||e)(h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"customButtonAction","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("customButtonAction",function(s){return o.generateReport(s)}),d()),n&2&&p("rest",o.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var kA=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Notifier"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Notifier"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-notifiers"]],decls:2,vars:4,consts:[["icon","accounts",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();function W9(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;P(" ",r," ")}}function G9(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",18),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),p("type",n.config[t][r].crypt?"password":"text"),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function q9(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"textarea",19),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function Y9(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",20),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function Q9(i,e){if(i&1){let r=A();c(0,"div")(1,"div",21)(2,"mat-slide-toggle",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),g(3),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(2),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),m(),P(" ",r," ")}}function K9(i,e){if(i&1&&(c(0,"mat-option",24),g(1),d()),i&2){let r=e.$implicit;p("value",r),m(),P(" ",r," ")}}function Z9(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"mat-select",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),D(5,K9,2,2,"mat-option",23),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),P(" ",r," "),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),m(),p("ngForOf",n.config[t][r].params)}}function X9(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",25),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function J9(i,e){i&1&&bi(0)}function eq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",26),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function tq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",27),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function iq(i,e){if(i&1&&(ht(0,15),D(1,G9,5,4,"div",16)(2,q9,5,3,"div",16)(3,Y9,5,3,"div",16)(4,Q9,4,3,"div",16)(5,Z9,6,4,"div",16)(6,X9,5,3,"div",16)(7,J9,1,0,"ng-container",16)(8,eq,5,3,"div",16)(9,tq,5,3,"div",17),pt()),i&2){let r=_().$implicit,t=_().$implicit,n=_(2);p("ngSwitch",n.config[t][r].type),m(),p("ngSwitchCase",0),m(),p("ngSwitchCase",1),m(),p("ngSwitchCase",2),m(),p("ngSwitchCase",3),m(),p("ngSwitchCase",4),m(),p("ngSwitchCase",5),m(),p("ngSwitchCase",6),m(),p("ngSwitchCase",7)}}function nq(i,e){if(i&1&&(c(0,"div",13),D(1,iq,10,9,"ng-container",14),d()),i&2){let r=e.$implicit,t=_().$implicit,n=_(2);m(),p("ngIf",n.config[t][r])}}function oq(i,e){if(i&1&&(c(0,"mat-tab"),D(1,W9,1,1,"ng-template",10),c(2,"div",11),D(3,nq,2,1,"div",12),d()()),i&2){let r=e.$implicit,t=_(2);m(3),p("ngForOf",t.configElements(r))}}function rq(i,e){if(i&1){let r=A();c(0,"div",4)(1,"div",5)(2,"mat-tab-group",6),D(3,oq,4,1,"mat-tab",7),d(),c(4,"div",8)(5,"button",9),b("click",function(){y(r);let n=_();return w(n.save())}),c(6,"uds-translate"),g(7,"Save"),d()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(),p("ngForOf",r.sections())}}var AA=["UDS","Security"],OA=["UDS ID"],RA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n}ngOnInit(){this.rest.configuration.overview().then(t=>{this.config=t;for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];a.type===7?a.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':a.type===3&&(a.value=!!["1",1,!0].includes(a.value)),a.original_value=a.value}}})}sections(){let t=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!AA.includes(n)&&t.push(n);return t=t.sort((n,o)=>n.localeCompare(o)),t.unshift.apply(t,AA),t}configElements(t){let n=[],o=this.config[t];if(o)for(let a in o)o.hasOwnProperty(a)&&!(t==="UDS"&&OA.includes(a))&&n.push(a);return n=n.sort((a,s)=>a.localeCompare(s)),t==="UDS"&&n.unshift.apply(n,OA),n}save(){let t={};for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];if(a.original_value!==a.value){a.original_value=a.value,t[n]||(t[n]={});let s=a.value;a.type===3&&(s=["1",1,!0].includes(a.value)?"1":"0"),t[n][o]={value:s}}}}this.rest.configuration.save(t).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-configuration"]],decls:7,vars:2,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"ngModelChange","type","ngModel","matTooltip"],["matInput","",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","number",3,"ngModelChange","ngModel","matTooltip"],[1,"toggle"],[3,"ngModelChange","ngModel","matTooltip"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","password",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","text",3,"ngModelChange","ngModel","matTooltip"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),I(2,"img",2),g(3,"\xA0"),c(4,"uds-translate"),g(5,"UDS Configuration"),d()(),D(6,rq,8,2,"div",3),d()),n&2&&(m(2),p("src",o.api.staticURL("admin/img/icons/configuration.png"),Ie),m(4),p("ngIf",o.config))},dependencies:[$e,pe,il,uh,JE,lt,jn,xe,Se,ke,nr,_e,Ae,ft,vt,it,ei,ti,oi,or,le],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]});let i=e;return i})();var PA=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){return q(this,null,function*(){yield this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var FA=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-servers-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var aq=[{path:"",canActivate:[yT],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:DT},{path:"services/providers",component:By},{path:"services/providers/:provider/detail",component:zy},{path:"services/providers/:provider",component:By},{path:"services/providers/:provider/detail/:service",component:zy},{path:"services/servers",component:Uy},{path:"services/servers/:server/detail",component:jk},{path:"services/servers/:server",component:Uy},{path:"authenticators",component:Hy},{path:"authenticators/:authenticator/detail",component:Gf},{path:"authenticators/:authenticator",component:Hy},{path:"authenticators/:authenticator/detail/groups/:group",component:Gf},{path:"authenticators/:authenticator/detail/users/:user",component:Gf},{path:"mfas",component:$y},{path:"mfas/:mfa",component:$y},{path:"osmanagers",component:Qy},{path:"osmanagers/:osmanager",component:Qy},{path:"connectivity/transports",component:Ky},{path:"connectivity/transports/:transport",component:Ky},{path:"connectivity/networks",component:Zy},{path:"connectivity/networks/:network",component:Zy},{path:"connectivity/tunnels",component:Xy},{path:"connectivity/tunnels/:tunnel",component:Xy},{path:"connectivity/tunnels/:tunnel/detail",component:qk},{path:"pools/service-pools",component:Jy},{path:"pools/service-pools/:pool",component:Jy},{path:"pools/service-pools/:pool/detail",component:Xf},{path:"pools/meta-pools",component:iw},{path:"pools/meta-pools/:metapool",component:iw},{path:"pools/meta-pools/:metapool/detail",component:tA},{path:"pools/pool-groups",component:ow},{path:"pools/pool-groups/:poolgroup",component:ow},{path:"pools/calendars",component:rw},{path:"pools/calendars/:calendar",component:rw},{path:"pools/calendars/:calendar/detail",component:EA},{path:"pools/accounts",component:_w},{path:"pools/accounts/:account",component:_w},{path:"pools/accounts/:account/detail",component:IA},{path:"tools/gallery",component:bw},{path:"tools/gallery/:image",component:bw},{path:"tools/reports",component:TA},{path:"tools/notifiers",component:kA},{path:"tools/tokens/actor",component:PA},{path:"tools/tokens/server",component:FA},{path:"tools/configuration",component:RA}]}],NA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[wb.forRoot(aq,{}),wb]});let i=e;return i})();function LA(i){return new te(3e3,!1)}function sq(){return new te(3100,!1)}function lq(){return new te(3101,!1)}function cq(i){return new te(3001,!1)}function dq(i){return new te(3003,!1)}function uq(i){return new te(3004,!1)}function mq(i,e){return new te(3005,!1)}function hq(){return new te(3006,!1)}function pq(){return new te(3007,!1)}function fq(i,e){return new te(3008,!1)}function gq(i){return new te(3002,!1)}function _q(i,e,r,t,n){return new te(3010,!1)}function vq(){return new te(3011,!1)}function bq(){return new te(3012,!1)}function yq(){return new te(3200,!1)}function wq(){return new te(3202,!1)}function Cq(){return new te(3013,!1)}function xq(i){return new te(3014,!1)}function Dq(i){return new te(3015,!1)}function Sq(i){return new te(3016,!1)}function Eq(i,e){return new te(3404,!1)}function Iq(i){return new te(3502,!1)}function Mq(i){return new te(3503,!1)}function Tq(){return new te(3300,!1)}function kq(i){return new te(3504,!1)}function Aq(i){return new te(3301,!1)}function Oq(i,e){return new te(3302,!1)}function Rq(i){return new te(3303,!1)}function Pq(i,e){return new te(3400,!1)}function Fq(i){return new te(3401,!1)}function Nq(i){return new te(3402,!1)}function Lq(i,e){return new te(3505,!1)}function Ta(i){switch(i.length){case 0:return new _a;case 1:return i[0];default:return new Id(i)}}function ZA(i,e,r=new Map,t=new Map){let n=[],o=[],a=-1,s=null;if(e.forEach(l=>{let u=l.get("offset"),f=u==a,v=f&&s||new Map;l.forEach((C,x)=>{let E=x,R=C;if(x!=="offset")switch(E=i.normalizePropertyName(E,n),R){case hp:R=r.get(x);break;case Jo:R=t.get(x);break;default:R=i.normalizeStyleValue(x,E,R,n);break}v.set(E,R)}),f||o.push(v),s=v,a=u}),n.length)throw Iq(n);return o}function Uw(i,e,r,t){switch(e){case"start":i.onStart(()=>t(r&&yw(r,"start",i)));break;case"done":i.onDone(()=>t(r&&yw(r,"done",i)));break;case"destroy":i.onDestroy(()=>t(r&&yw(r,"destroy",i)));break}}function yw(i,e,r){let t=r.totalTime,n=!!r.disabled,o=Hw(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,t??i.totalTime,n),a=i._data;return a!=null&&(o._data=a),o}function Hw(i,e,r,t,n="",o=0,a){return{element:i,triggerName:e,fromState:r,toState:t,phaseName:n,totalTime:o,disabled:!!a}}function Hn(i,e,r){let t=i.get(e);return t||i.set(e,t=r),t}function VA(i){let e=i.indexOf(":"),r=i.substring(1,e),t=i.slice(e+1);return[r,t]}var Vq=typeof document>"u"?null:document.documentElement;function $w(i){let e=i.parentNode||i.host||null;return e===Vq?null:e}function jq(i){return i.substring(1,6)=="ebkit"}var _s=null,jA=!1;function Bq(i){_s||(_s=zq()||{},jA=_s.style?"WebkitAppearance"in _s.style:!1);let e=!0;return _s.style&&!jq(i)&&(e=i in _s.style,!e&&jA&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in _s.style)),e}function zq(){return typeof document<"u"?document.body:null}function XA(i,e){for(;e;){if(e===i)return!0;e=$w(e)}return!1}function JA(i,e,r){if(r)return Array.from(i.querySelectorAll(e));let t=i.querySelector(e);return t?[t]:[]}var Ww=(()=>{let e=class e{validateStyleProperty(t){return Bq(t)}containsElement(t,n){return XA(t,n)}getParentElement(t){return $w(t)}query(t,n,o){return JA(t,n,o)}computeStyle(t,n,o){return o||""}animate(t,n,o,a,s,l=[],u){return new _a(o,a)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Qw=class Qw{};Qw.NOOP=new Ww;var ys=Qw,ws=class{};var Uq=1e3,eO="{{",Hq="}}",tO="ng-enter",Ew="ng-leave",rg="ng-trigger",dg=".ng-trigger",BA="ng-animating",Iw=".ng-animating";function Pr(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Mw(parseFloat(e[1]),e[2])}function Mw(i,e){switch(e){case"s":return i*Uq;default:return i}}function ug(i,e,r){return i.hasOwnProperty("duration")?i:$q(i,e,r)}function $q(i,e,r){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,o=0,a="";if(typeof i=="string"){let s=i.match(t);if(s===null)return e.push(LA(i)),{duration:0,delay:0,easing:""};n=Mw(parseFloat(s[1]),s[2]);let l=s[3];l!=null&&(o=Mw(parseFloat(l),s[4]));let u=s[5];u&&(a=u)}else n=i;if(!r){let s=!1,l=e.length;n<0&&(e.push(sq()),s=!0),o<0&&(e.push(lq()),s=!0),s&&e.splice(l,0,LA(i))}return{duration:n,delay:o,easing:a}}function Wq(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function rr(i,e,r){e.forEach((t,n)=>{let o=Gw(n);r&&!r.has(n)&&r.set(n,i.style[o]),i.style[o]=t})}function bs(i,e){e.forEach((r,t)=>{let n=Gw(t);i.style[n]=""})}function Qd(i){return Array.isArray(i)?i.length==1?i[0]:rM(i):i}function Gq(i,e,r){let t=e.params||{},n=iO(i);n.length&&n.forEach(o=>{t.hasOwnProperty(o)||r.push(cq(o))})}var Tw=new RegExp(`${eO}\\s*(.+?)\\s*${Hq}`,"g");function iO(i){let e=[];if(typeof i=="string"){let r;for(;r=Tw.exec(i);)e.push(r[1]);Tw.lastIndex=0}return e}function Zd(i,e,r){let t=`${i}`,n=t.replace(Tw,(o,a)=>{let s=e[a];return s==null&&(r.push(dq(a)),s=""),s.toString()});return n==t?i:n}var qq=/-+([a-z0-9])/g;function Gw(i){return i.replace(qq,(...e)=>e[1].toUpperCase())}function Yq(i,e){return i===0||e===0}function Qq(i,e,r){if(r.size&&e.length){let t=e[0],n=[];if(r.forEach((o,a)=>{t.has(a)||n.push(a),t.set(a,o)}),n.length)for(let o=1;oa.set(s,qw(i,s)))}}return e}function Un(i,e,r){switch(e.type){case nt.Trigger:return i.visitTrigger(e,r);case nt.State:return i.visitState(e,r);case nt.Transition:return i.visitTransition(e,r);case nt.Sequence:return i.visitSequence(e,r);case nt.Group:return i.visitGroup(e,r);case nt.Animate:return i.visitAnimate(e,r);case nt.Keyframes:return i.visitKeyframes(e,r);case nt.Style:return i.visitStyle(e,r);case nt.Reference:return i.visitReference(e,r);case nt.AnimateChild:return i.visitAnimateChild(e,r);case nt.AnimateRef:return i.visitAnimateRef(e,r);case nt.Query:return i.visitQuery(e,r);case nt.Stagger:return i.visitStagger(e,r);default:throw uq(e.type)}}function qw(i,e){return window.getComputedStyle(i)[e]}var Kq=new Set(["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"]),mg=class extends ws{normalizePropertyName(e,r){return Gw(e)}normalizeStyleValue(e,r,t,n){let o="",a=t.toString().trim();if(Kq.has(r)&&t!==0&&t!=="0")if(typeof t=="number")o="px";else{let s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&n.push(mq(e,t))}return a+o}};var hg="*";function Zq(i,e){let r=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(t=>Xq(t,r,e)):r.push(i),r}function Xq(i,e,r){if(i[0]==":"){let l=Jq(i,r);if(typeof l=="function"){e.push(l);return}i=l}let t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return r.push(Dq(i)),e;let n=t[1],o=t[2],a=t[3];e.push(zA(n,a));let s=n==hg&&a==hg;o[0]=="<"&&!s&&e.push(zA(a,n))}function Jq(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,t)=>parseFloat(t)>parseFloat(r);case":decrement":return(r,t)=>parseFloat(t) *"}}var ag=new Set(["true","1"]),sg=new Set(["false","0"]);function zA(i,e){let r=ag.has(i)||sg.has(i),t=ag.has(e)||sg.has(e);return(n,o)=>{let a=i==hg||i==n,s=e==hg||e==o;return!a&&r&&typeof n=="boolean"&&(a=n?ag.has(i):sg.has(i)),!s&&t&&typeof o=="boolean"&&(s=o?ag.has(e):sg.has(e)),a&&s}}var nO=":self",eY=new RegExp(`s*${nO}s*,?`,"g");function oO(i,e,r,t){return new kw(i).build(e,r,t)}var UA="",kw=class{constructor(e){this._driver=e}build(e,r,t){let n=new Aw(r);return this._resetContextStyleTimingState(n),Un(this,Qd(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=UA,e.collectedStyles=new Map,e.collectedStyles.set(UA,new Map),e.currentTime=0}visitTrigger(e,r){let t=r.queryCount=0,n=r.depCount=0,o=[],a=[];return e.name.charAt(0)=="@"&&r.errors.push(hq()),e.definitions.forEach(s=>{if(this._resetContextStyleTimingState(r),s.type==nt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,o.push(this.visitState(l,r))}),l.name=u}else if(s.type==nt.Transition){let l=this.visitTransition(s,r);t+=l.queryCount,n+=l.depCount,a.push(l)}else r.errors.push(pq())}),{type:nt.Trigger,name:e.name,states:o,transitions:a,queryCount:t,depCount:n,options:null}}visitState(e,r){let t=this.visitStyle(e.styles,r),n=e.options&&e.options.params||null;if(t.containsDynamicStyles){let o=new Set,a=n||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{iO(l).forEach(u=>{a.hasOwnProperty(u)||o.add(u)})})}),o.size&&r.errors.push(fq(e.name,[...o.values()]))}return{type:nt.State,name:e.name,style:t,options:n?{params:n}:null}}visitTransition(e,r){r.queryCount=0,r.depCount=0;let t=Un(this,Qd(e.animation),r),n=Zq(e.expr,r.errors);return{type:nt.Transition,matchers:n,animation:t,queryCount:r.queryCount,depCount:r.depCount,options:vs(e.options)}}visitSequence(e,r){return{type:nt.Sequence,steps:e.steps.map(t=>Un(this,t,r)),options:vs(e.options)}}visitGroup(e,r){let t=r.currentTime,n=0,o=e.steps.map(a=>{r.currentTime=t;let s=Un(this,a,r);return n=Math.max(n,r.currentTime),s});return r.currentTime=n,{type:nt.Group,steps:o,options:vs(e.options)}}visitAnimate(e,r){let t=oY(e.timings,r.errors);r.currentAnimateTimings=t;let n,o=e.styles?e.styles:Me({});if(o.type==nt.Keyframes)n=this.visitKeyframes(o,r);else{let a=e.styles,s=!1;if(!a){s=!0;let u={};t.easing&&(u.easing=t.easing),a=Me(u)}r.currentTime+=t.duration+t.delay;let l=this.visitStyle(a,r);l.isEmptyStep=s,n=l}return r.currentAnimateTimings=null,{type:nt.Animate,timings:t,style:n,options:null}}visitStyle(e,r){let t=this._makeStyleAst(e,r);return this._validateStyleAst(t,r),t}_makeStyleAst(e,r){let t=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let s of n)typeof s=="string"?s===Jo?t.push(s):r.errors.push(gq(s)):t.push(new Map(Object.entries(s)));let o=!1,a=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o)){for(let l of s.values())if(l.toString().indexOf(eO)>=0){o=!0;break}}}),{type:nt.Style,styles:t,easing:a,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,r){let t=r.currentAnimateTimings,n=r.currentTime,o=r.currentTime;t&&o>0&&(o-=t.duration+t.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=r.collectedStyles.get(r.currentQuerySelector),f=u.get(l),v=!0;f&&(o!=n&&o>=f.startTime&&n<=f.endTime&&(r.errors.push(_q(l,f.startTime,f.endTime,o,n)),v=!1),o=f.startTime),v&&u.set(l,{startTime:o,endTime:n}),r.options&&Gq(s,r.options,r.errors)})})}visitKeyframes(e,r){let t={type:nt.Keyframes,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(vq()),t;let n=1,o=0,a=[],s=!1,l=!1,u=0,f=e.steps.map(F=>{let ge=this._makeStyleAst(F,r),ot=ge.offset!=null?ge.offset:nY(ge.styles),rt=0;return ot!=null&&(o++,rt=ge.offset=ot),l=l||rt<0||rt>1,s=s||rt0&&o{let ot=C>0?ge==x?1:C*ge:a[ge],rt=ot*j;r.currentTime=E+R.delay+rt,R.duration=rt,this._validateStyleAst(F,r),F.offset=ot,t.styles.push(F)}),t}visitReference(e,r){return{type:nt.Reference,animation:Un(this,Qd(e.animation),r),options:vs(e.options)}}visitAnimateChild(e,r){return r.depCount++,{type:nt.AnimateChild,options:vs(e.options)}}visitAnimateRef(e,r){return{type:nt.AnimateRef,animation:this.visitReference(e.animation,r),options:vs(e.options)}}visitQuery(e,r){let t=r.currentQuerySelector,n=e.options||{};r.queryCount++,r.currentQuery=e;let[o,a]=tY(e.selector);r.currentQuerySelector=t.length?t+" "+o:o,Hn(r.collectedStyles,r.currentQuerySelector,new Map);let s=Un(this,Qd(e.animation),r);return r.currentQuery=null,r.currentQuerySelector=t,{type:nt.Query,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:vs(e.options)}}visitStagger(e,r){r.currentQuery||r.errors.push(Cq());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ug(e.timings,r.errors,!0);return{type:nt.Stagger,animation:Un(this,Qd(e.animation),r),timings:t,options:null}}};function tY(i){let e=!!i.split(/\s*,\s*/).find(r=>r==nO);return e&&(i=i.replace(eY,"")),i=i.replace(/@\*/g,dg).replace(/@\w+/g,r=>dg+"-"+r.slice(1)).replace(/:animating/g,Iw),[i,e]}function iY(i){return i?B({},i):null}var Aw=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function nY(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(r=>{if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let r=i;e=parseFloat(r.get("offset")),r.delete("offset")}return e}function oY(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let o=ug(i,e).duration;return ww(o,0,"")}let r=i;if(r.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=ww(0,0,"");return o.dynamic=!0,o.strValue=r,o}let n=ug(r,e);return ww(n.duration,n.delay,n.easing)}function vs(i){return i?(i=B({},i),i.params&&(i.params=iY(i.params))):i={},i}function ww(i,e,r){return{duration:i,delay:e,easing:r}}function Yw(i,e,r,t,n,o,a=null,s=!1){return{type:1,element:i,keyframes:e,preStyleProps:r,postStyleProps:t,duration:n,delay:o,totalTime:n+o,easing:a,subTimeline:s}}var Xd=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,r){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...r)}has(e){return this._map.has(e)}clear(){this._map.clear()}},rY=1,aY=":enter",sY=new RegExp(aY,"g"),lY=":leave",cY=new RegExp(lY,"g");function rO(i,e,r,t,n,o=new Map,a=new Map,s,l,u=[]){return new Ow().buildKeyframes(i,e,r,t,n,o,a,s,l,u)}var Ow=class{buildKeyframes(e,r,t,n,o,a,s,l,u,f=[]){u=u||new Xd;let v=new Rw(e,r,u,n,o,f,[]);v.options=l;let C=l.delay?Pr(l.delay):0;v.currentTimeline.delayNextStep(C),v.currentTimeline.setStyles([a],null,v.errors,l),Un(this,t,v);let x=v.timelines.filter(E=>E.containsAnimation());if(x.length&&s.size){let E;for(let R=x.length-1;R>=0;R--){let j=x[R];if(j.element===r){E=j;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([s],null,v.errors,l)}return x.length?x.map(E=>E.buildKeyframes()):[Yw(r,[],[],[],0,C,"",!1)]}visitTrigger(e,r){}visitState(e,r){}visitTransition(e,r){}visitAnimateChild(e,r){let t=r.subInstructions.get(r.element);if(t){let n=r.createSubContext(e.options),o=r.currentTimeline.currentTime,a=this._visitSubInstructions(t,n,n.options);o!=a&&r.transformIntoNewTimeline(a)}r.previousNode=e}visitAnimateRef(e,r){let t=r.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],r,t),this.visitReference(e.animation,t),r.transformIntoNewTimeline(t.currentTimeline.currentTime),r.previousNode=e}_applyAnimationRefDelays(e,r,t){for(let n of e){let o=n?.delay;if(o){let a=typeof o=="number"?o:Pr(Zd(o,n?.params??{},r.errors));t.delayNextStep(a)}}}_visitSubInstructions(e,r,t){let o=r.currentTimeline.currentTime,a=t.duration!=null?Pr(t.duration):null,s=t.delay!=null?Pr(t.delay):null;return a!==0&&e.forEach(l=>{let u=r.appendInstructionToTimeline(l,a,s);o=Math.max(o,u.duration+u.delay)}),o}visitReference(e,r){r.updateOptions(e.options,!0),Un(this,e.animation,r),r.previousNode=e}visitSequence(e,r){let t=r.subContextCount,n=r,o=e.options;if(o&&(o.params||o.delay)&&(n=r.createSubContext(o),n.transformIntoNewTimeline(),o.delay!=null)){n.previousNode.type==nt.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=pg);let a=Pr(o.delay);n.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>Un(this,a,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>t&&n.transformIntoNewTimeline()),r.previousNode=e}visitGroup(e,r){let t=[],n=r.currentTimeline.currentTime,o=e.options&&e.options.delay?Pr(e.options.delay):0;e.steps.forEach(a=>{let s=r.createSubContext(e.options);o&&s.delayNextStep(o),Un(this,a,s),n=Math.max(n,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(a=>r.currentTimeline.mergeTimelineCollectedStyles(a)),r.transformIntoNewTimeline(n),r.previousNode=e}_visitTiming(e,r){if(e.dynamic){let t=e.strValue,n=r.params?Zd(t,r.params,r.errors):t;return ug(n,r.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,r){let t=r.currentAnimateTimings=this._visitTiming(e.timings,r),n=r.currentTimeline;t.delay&&(r.incrementTime(t.delay),n.snapshotCurrentStyles());let o=e.style;o.type==nt.Keyframes?this.visitKeyframes(o,r):(r.incrementTime(t.duration),this.visitStyle(o,r),n.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=e}visitStyle(e,r){let t=r.currentTimeline,n=r.currentAnimateTimings;!n&&t.hasCurrentStyleProperties()&&t.forwardFrame();let o=n&&n.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(o):t.setStyles(e.styles,o,r.errors,r.options),r.previousNode=e}visitKeyframes(e,r){let t=r.currentAnimateTimings,n=r.currentTimeline.duration,o=t.duration,s=r.createSubContext().currentTimeline;s.easing=t.easing,e.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*o),s.setStyles(l.styles,l.easing,r.errors,r.options),s.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(s),r.transformIntoNewTimeline(n+o),r.previousNode=e}visitQuery(e,r){let t=r.currentTimeline.currentTime,n=e.options||{},o=n.delay?Pr(n.delay):0;o&&(r.previousNode.type===nt.Style||t==0&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=pg);let a=t,s=r.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,r.errors);r.currentQueryTotal=s.length;let l=null;s.forEach((u,f)=>{r.currentQueryIndex=f;let v=r.createSubContext(e.options,u);o&&v.delayNextStep(o),u===r.element&&(l=v.currentTimeline),Un(this,e.animation,v),v.currentTimeline.applyStylesToKeyframe();let C=v.currentTimeline.currentTime;a=Math.max(a,C)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(a),l&&(r.currentTimeline.mergeTimelineCollectedStyles(l),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=e}visitStagger(e,r){let t=r.parentContext,n=r.currentTimeline,o=e.timings,a=Math.abs(o.duration),s=a*(r.currentQueryTotal-1),l=a*r.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=t.currentStaggerTime;break}let f=r.currentTimeline;l&&f.delayNextStep(l);let v=f.currentTime;Un(this,e.animation,r),r.previousNode=e,t.currentStaggerTime=n.currentTime-v+(n.startTime-t.currentTimeline.startTime)}},pg={},Rw=class i{constructor(e,r,t,n,o,a,s,l){this._driver=e,this.element=r,this.subInstructions=t,this._enterClassName=n,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new fg(this._driver,r,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,r){if(!e)return;let t=e,n=this.options;t.duration!=null&&(n.duration=Pr(t.duration)),t.delay!=null&&(n.delay=Pr(t.delay));let o=t.params;if(o){let a=n.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!r||!a.hasOwnProperty(s))&&(a[s]=Zd(o[s],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let r=this.options.params;if(r){let t=e.params={};Object.keys(r).forEach(n=>{t[n]=r[n]})}}return e}createSubContext(e=null,r,t){let n=r||this.element,o=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,t||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=pg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,r,t){let n={duration:r??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},o=new Pw(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(o),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,r,t,n,o,a){let s=[];if(n&&s.push(this.element),e.length>0){e=e.replace(sY,"."+this._enterClassName),e=e.replace(cY,"."+this._leaveClassName);let l=t!=1,u=this._driver.query(this.element,e,l);t!==0&&(u=t<0?u.slice(u.length+t,u.length):u.slice(0,t)),s.push(...u)}return!o&&s.length==0&&a.push(xq(r)),s}},fg=class i{constructor(e,r,t,n){this._driver=e,this.element=r,this.startTime=t,this._elementTimelineStylesLookup=n,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let r=this._keyframes.size===1&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+e),r&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,r){return this.applyStylesToKeyframe(),new i(this._driver,e,r||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=rY,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,r){this._localTimelineStyles.set(e,r),this._globalTimelineStyles.set(e,r),this._styleSummary.set(e,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[r,t]of this._globalTimelineStyles)this._backFill.set(r,t||Jo),this._currentKeyframe.set(r,Jo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,r,t,n){r&&this._previousKeyframe.set("easing",r);let o=n&&n.params||{},a=dY(e,this._globalTimelineStyles);for(let[s,l]of a){let u=Zd(l,o,t);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Jo),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,r)=>{this._currentKeyframe.set(r,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,e)}))}snapshotCurrentStyles(){for(let[e,r]of this._localTimelineStyles)this._pendingStyles.set(e,r),this._updateStyle(e,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let r in this._currentKeyframe)e.push(r);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((r,t)=>{let n=this._styleSummary.get(t);(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,r=new Set,t=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((f,v)=>{f===hp?e.add(v):f===Jo&&r.add(v)}),t||u.set("offset",l/this.duration),n.push(u)});let o=[...e.values()],a=[...r.values()];if(t){let s=n[0],l=new Map(s);s.set("offset",0),l.set("offset",1),n=[s,l]}return Yw(this.element,n,o,a,this.duration,this.startTime,this.easing,!1)}},Pw=class extends fg{constructor(e,r,t,n,o,a,s=!1){super(e,r,a.delay),this.keyframes=t,this.preStyleProps=n,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:r,duration:t,easing:n}=this.timings;if(this._stretchStartingKeyframe&&r){let o=[],a=t+r,s=r/a,l=new Map(e[0]);l.set("offset",0),o.push(l);let u=new Map(e[0]);u.set("offset",HA(s)),o.push(u);let f=e.length-1;for(let v=1;v<=f;v++){let C=new Map(e[v]),x=C.get("offset"),E=r+x*t;C.set("offset",HA(E/a)),o.push(C)}t=a,r=0,n="",e=o}return Yw(this.element,e,this.preStyleProps,this.postStyleProps,t,r,n,!0)}};function HA(i,e=3){let r=Math.pow(10,e-1);return Math.round(i*r)/r}function dY(i,e){let r=new Map,t;return i.forEach(n=>{if(n==="*"){t??=e.keys();for(let o of t)r.set(o,Jo)}else for(let[o,a]of n)r.set(o,a)}),r}function $A(i,e,r,t,n,o,a,s,l,u,f,v,C){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:r,fromStyles:o,toState:t,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:f,totalTime:v,errors:C}}var Cw={},gg=class{constructor(e,r,t){this._triggerName=e,this.ast=r,this._stateStyles=t}match(e,r,t,n){return uY(this.ast.matchers,e,r,t,n)}buildStyles(e,r,t){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(r,t):new Map}build(e,r,t,n,o,a,s,l,u,f){let v=[],C=this.ast.options&&this.ast.options.params||Cw,x=s&&s.params||Cw,E=this.buildStyles(t,x,v),R=l&&l.params||Cw,j=this.buildStyles(n,R,v),F=new Set,ge=new Map,ot=new Map,rt=n==="void",Mi={params:aO(R,C),delay:this.ast.options?.delay},Nt=f?[]:rO(e,r,this.ast.animation,o,a,E,j,Mi,u,v),Ht=0;return Nt.forEach(_i=>{Ht=Math.max(_i.duration+_i.delay,Ht)}),v.length?$A(r,this._triggerName,t,n,rt,E,j,[],[],ge,ot,Ht,v):(Nt.forEach(_i=>{let ar=_i.element,Fr=Hn(ge,ar,new Set);_i.preStyleProps.forEach(ka=>Fr.add(ka));let iC=Hn(ot,ar,new Set);_i.postStyleProps.forEach(ka=>iC.add(ka)),ar!==r&&F.add(ar)}),$A(r,this._triggerName,t,n,rt,E,j,Nt,[...F.values()],ge,ot,Ht))}};function uY(i,e,r,t,n){return i.some(o=>o(e,r,t,n))}function aO(i,e){let r=B({},e);return Object.entries(i).forEach(([t,n])=>{n!=null&&(r[t]=n)}),r}var Fw=class{constructor(e,r,t){this.styles=e,this.defaultParams=r,this.normalizer=t}buildStyles(e,r){let t=new Map,n=aO(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=Zd(a,n,r));let l=this.normalizer.normalizePropertyName(s,r);a=this.normalizer.normalizeStyleValue(s,l,a,r),t.set(s,a)})}),t}};function mY(i,e,r){return new Nw(i,e,r)}var Nw=class{constructor(e,r,t){this.name=e,this.ast=r,this._normalizer=t,this.transitionFactories=[],this.states=new Map,r.states.forEach(n=>{let o=n.options&&n.options.params||{};this.states.set(n.name,new Fw(n.style,o,t))}),WA(this.states,"true","1"),WA(this.states,"false","0"),r.transitions.forEach(n=>{this.transitionFactories.push(new gg(e,n,this.states))}),this.fallbackTransition=hY(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,r,t,n){return this.transitionFactories.find(a=>a.match(e,r,t,n))||null}matchStyles(e,r,t){return this.fallbackTransition.buildStyles(e,r,t)}};function hY(i,e,r){let t=[(a,s)=>!0],n={type:nt.Sequence,steps:[],options:null},o={type:nt.Transition,animation:n,matchers:t,options:null,queryCount:0,depCount:0};return new gg(i,o,e)}function WA(i,e,r){i.has(e)?i.has(r)||i.set(r,i.get(e)):i.has(r)&&i.set(e,i.get(r))}var pY=new Xd,Lw=class{constructor(e,r,t){this.bodyNode=e,this._driver=r,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,r){let t=[],n=[],o=oO(this._driver,r,t,n);if(t.length)throw Mq(t);n.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,r,t){let n=e.element,o=ZA(this._normalizer,e.keyframes,r,t);return this._driver.animate(n,o,e.duration,e.delay,e.easing,[],!0)}create(e,r,t={}){let n=[],o=this._animations.get(e),a,s=new Map;if(o?(a=rO(this._driver,r,o,tO,Ew,new Map,new Map,t,pY,n),a.forEach(f=>{let v=Hn(s,f.element,new Map);f.postStyleProps.forEach(C=>v.set(C,null))})):(n.push(Tq()),a=[]),n.length)throw kq(n);s.forEach((f,v)=>{f.forEach((C,x)=>{f.set(x,this._driver.computeStyle(v,x,Jo))})});let l=a.map(f=>{let v=s.get(f.element);return this._buildPlayer(f,new Map,v)}),u=Ta(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let r=this._getPlayer(e);r.destroy(),this._playersById.delete(e);let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1)}_getPlayer(e){let r=this._playersById.get(e);if(!r)throw Aq(e);return r}listen(e,r,t,n){let o=Hw(r,"","","");return Uw(this._getPlayer(e),t,o,n),()=>{}}command(e,r,t,n){if(t=="register"){this.register(e,n[0]);return}if(t=="create"){let a=n[0]||{};this.create(e,r,a);return}let o=this._getPlayer(e);switch(t){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},GA="ng-animate-queued",fY=".ng-animate-queued",xw="ng-animate-disabled",gY=".ng-animate-disabled",_Y="ng-star-inserted",vY=".ng-star-inserted",bY=[],sO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},yY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ao="__ng_removed",Jd=class{get params(){return this.options.params}constructor(e,r=""){this.namespaceId=r;let t=e&&e.hasOwnProperty("value"),n=t?e.value:e;if(this.value=CY(n),t){let o=e,{value:a}=o,s=Dg(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let r=e.params;if(r){let t=this.options.params;Object.keys(r).forEach(n=>{t[n]==null&&(t[n]=r[n])})}}},Kd="void",Dw=new Jd(Kd),Vw=class{constructor(e,r,t){this.id=e,this.hostElement=r,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,mo(r,this._hostClassName)}listen(e,r,t,n){if(!this._triggers.has(r))throw Oq(t,r);if(t==null||t.length==0)throw Rq(r);if(!xY(t))throw Pq(t,r);let o=Hn(this._elementListeners,e,[]),a={name:r,phase:t,callback:n};o.push(a);let s=Hn(this._engine.statesByElement,e,new Map);return s.has(r)||(mo(e,rg),mo(e,rg+"-"+r),s.set(r,Dw)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(r)||s.delete(r)})}}register(e,r){return this._triggers.has(e)?!1:(this._triggers.set(e,r),!0)}_getTrigger(e){let r=this._triggers.get(e);if(!r)throw Fq(e);return r}trigger(e,r,t,n=!0){let o=this._getTrigger(r),a=new eu(this.id,r,e),s=this._engine.statesByElement.get(e);s||(mo(e,rg),mo(e,rg+"-"+r),this._engine.statesByElement.set(e,s=new Map));let l=s.get(r),u=new Jd(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(r,u),l||(l=Dw),!(u.value===Kd)&&l.value===u.value){if(!EY(l.params,u.params)){let R=[],j=o.matchStyles(l.value,l.params,R),F=o.matchStyles(u.value,u.params,R);R.length?this._engine.reportError(R):this._engine.afterFlush(()=>{bs(e,j),rr(e,F)})}return}let C=Hn(this._engine.playersByElement,e,[]);C.forEach(R=>{R.namespaceId==this.id&&R.triggerName==r&&R.queued&&R.destroy()});let x=o.matchTransition(l.value,u.value,e,u.params),E=!1;if(!x){if(!n)return;x=o.fallbackTransition,E=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:x,fromState:l,toState:u,player:a,isFallbackTransition:E}),E||(mo(e,GA),a.onStart(()=>{ql(e,GA)})),a.onDone(()=>{let R=this.players.indexOf(a);R>=0&&this.players.splice(R,1);let j=this._engine.playersByElement.get(e);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),C.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(r=>r.delete(e)),this._elementListeners.forEach((r,t)=>{this._elementListeners.set(t,r.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let r=this._engine.playersByElement.get(e);r&&(r.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,r){let t=this._engine.driver.query(e,dg,!0);t.forEach(n=>{if(n[Ao])return;let o=this._engine.fetchNamespacesByElement(n);o.size?o.forEach(a=>a.triggerLeaveAnimation(n,r,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,r,t,n){let o=this._engine.statesByElement.get(e),a=new Map;if(o){let s=[];if(o.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let f=this.trigger(e,u,Kd,n);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,r,a),t&&Ta(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let r=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(r&&t){let n=new Set;r.forEach(o=>{let a=o.name;if(n.has(a))return;n.add(a);let l=this._triggers.get(a).fallbackTransition,u=t.get(a)||Dw,f=new Jd(Kd),v=new eu(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:f,player:v,isFallbackTransition:!0})})}}removeNode(e,r){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,r),this.triggerLeaveAnimation(e,r,!0))return;let n=!1;if(t.totalAnimations){let o=t.players.length?t.playersByQueriedElement.get(e):[];if(o&&o.length)n=!0;else{let a=e;for(;a=a.parentNode;)if(t.statesByElement.get(a)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)t.markElementAsRemoved(this.id,e,!1,r);else{let o=e[Ao];(!o||o===sO)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,r))}}insertNode(e,r){mo(e,this._hostClassName)}drainQueuedTransitions(e){let r=[];return this._queue.forEach(t=>{let n=t.player;if(n.destroyed)return;let o=t.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==t.triggerName){let l=Hw(o,t.triggerName,t.fromState.value,t.toState.value);l._data=e,Uw(t.player,s.phase,l,s.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):r.push(t)}),this._queue=[],r.sort((t,n)=>{let o=t.transition.ast.depCount,a=n.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(t.element,n.element)?1:-1})}destroy(e){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},jw=class{_onRemovalComplete(e,r){this.onRemovalComplete(e,r)}constructor(e,r,t){this.bodyNode=e,this.driver=r,this._normalizer=t,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=(n,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(r=>{r.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,r){let t=new Vw(e,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(t,r):(this.newHostElements.set(r,t),this.collectEnterElement(r)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,r){let t=this._namespaceList,n=this.namespacesByHostElement;if(t.length-1>=0){let a=!1,s=this.driver.getParentElement(r);for(;s;){let l=n.get(s);if(l){let u=t.indexOf(l);t.splice(u+1,0,e),a=!0;break}s=this.driver.getParentElement(s)}a||t.unshift(e)}else t.push(e);return n.set(r,e),e}register(e,r){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,r)),t}registerTrigger(e,r,t){let n=this._namespaceLookup[e];n&&n.register(r,t)&&this.totalAnimations++}destroy(e,r){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let n=this._namespaceList.indexOf(t);n>=0&&this._namespaceList.splice(n,1),t.destroy(r),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let r=new Set,t=this.statesByElement.get(e);if(t){for(let n of t.values())if(n.namespaceId){let o=this._fetchNamespace(n.namespaceId);o&&r.add(o)}}return r}trigger(e,r,t,n){if(lg(r)){let o=this._fetchNamespace(e);if(o)return o.trigger(r,t,n),!0}return!1}insertNode(e,r,t,n){if(!lg(r))return;let o=r[Ao];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(r);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(r,t)}n&&this.collectEnterElement(r)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,r){r?this.disabledNodes.has(e)||(this.disabledNodes.add(e),mo(e,xw)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ql(e,xw))}removeNode(e,r,t){if(lg(r)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(r,t):this.markElementAsRemoved(e,r,!1,t);let o=this.namespacesByHostElement.get(r);o&&o.id!==e&&o.removeNode(r,t)}else this._onRemovalComplete(r,t)}markElementAsRemoved(e,r,t,n,o){this.collectedLeaveElements.push(r),r[Ao]={namespaceId:e,setForRemoval:n,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,r,t,n,o){return lg(r)?this._fetchNamespace(e).listen(r,t,n,o):()=>{}}_buildInstruction(e,r,t,n,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,n,e.fromState.options,e.toState.options,r,o)}destroyInnerAnimations(e){let r=this.driver.query(e,dg,!0);r.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(r=this.driver.query(e,Iw,!0),r.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let r=this.playersByElement.get(e);r&&r.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let r=this.playersByQueriedElement.get(e);r&&r.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ta(this.players).onDone(()=>e());e()})}processLeaveNode(e){let r=e[Ao];if(r&&r.setForRemoval){if(e[Ao]=sO,r.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(r.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}e.classList?.contains(xw)&&this.markElementAsDisabled(e,!1),this.driver.query(e,gY,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,n)=>this._balanceNamespaceList(t,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],r.length?Ta(r).onDone(()=>{t.forEach(n=>n())}):t.forEach(n=>n())}}reportError(e){throw Nq(e)}_flushAnimations(e,r){let t=new Xd,n=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,f=new Set;this.disabledNodes.forEach(we=>{f.add(we);let Ne=this.driver.query(we,fY,!0);for(let Ge=0;Ge{let Ge=tO+R++;E.set(Ne,Ge),we.forEach(kt=>mo(kt,Ge))});let j=[],F=new Set,ge=new Set;for(let we=0;weF.add(kt)):ge.add(Ne))}let ot=new Map,rt=QA(C,Array.from(F));rt.forEach((we,Ne)=>{let Ge=Ew+R++;ot.set(Ne,Ge),we.forEach(kt=>mo(kt,Ge))}),e.push(()=>{x.forEach((we,Ne)=>{let Ge=E.get(Ne);we.forEach(kt=>ql(kt,Ge))}),rt.forEach((we,Ne)=>{let Ge=ot.get(Ne);we.forEach(kt=>ql(kt,Ge))}),j.forEach(we=>{this.processLeaveNode(we)})});let Mi=[],Nt=[];for(let we=this._namespaceList.length-1;we>=0;we--)this._namespaceList[we].drainQueuedTransitions(r).forEach(Ge=>{let kt=Ge.player,Pi=Ge.element;if(Mi.push(kt),this.collectedEnterElements.length){let Ki=Pi[Ao];if(Ki&&Ki.setForMove){if(Ki.previousTriggersValues&&Ki.previousTriggersValues.has(Ge.triggerName)){let Aa=Ki.previousTriggersValues.get(Ge.triggerName),$n=this.statesByElement.get(Ge.element);if($n&&$n.has(Ge.triggerName)){let iu=$n.get(Ge.triggerName);iu.value=Aa,$n.set(Ge.triggerName,iu)}}kt.destroy();return}}let Oo=!v||!this.driver.containsElement(v,Pi),An=ot.get(Pi),Nr=E.get(Pi),ui=this._buildInstruction(Ge,t,Nr,An,Oo);if(ui.errors&&ui.errors.length){Nt.push(ui);return}if(Oo){kt.onStart(()=>bs(Pi,ui.fromStyles)),kt.onDestroy(()=>rr(Pi,ui.toStyles)),n.push(kt);return}if(Ge.isFallbackTransition){kt.onStart(()=>bs(Pi,ui.fromStyles)),kt.onDestroy(()=>rr(Pi,ui.toStyles)),n.push(kt);return}let rC=[];ui.timelines.forEach(Ki=>{Ki.stretchStartingKeyframe=!0,this.disabledNodes.has(Ki.element)||rC.push(Ki)}),ui.timelines=rC,t.append(Pi,ui.timelines);let KO={instruction:ui,player:kt,element:Pi};a.push(KO),ui.queriedElements.forEach(Ki=>Hn(s,Ki,[]).push(kt)),ui.preStyleProps.forEach((Ki,Aa)=>{if(Ki.size){let $n=l.get(Aa);$n||l.set(Aa,$n=new Set),Ki.forEach((iu,xg)=>$n.add(xg))}}),ui.postStyleProps.forEach((Ki,Aa)=>{let $n=u.get(Aa);$n||u.set(Aa,$n=new Set),Ki.forEach((iu,xg)=>$n.add(xg))})});if(Nt.length){let we=[];Nt.forEach(Ne=>{we.push(Lq(Ne.triggerName,Ne.errors))}),Mi.forEach(Ne=>Ne.destroy()),this.reportError(we)}let Ht=new Map,_i=new Map;a.forEach(we=>{let Ne=we.element;t.has(Ne)&&(_i.set(Ne,Ne),this._beforeAnimationBuild(we.player.namespaceId,we.instruction,Ht))}),n.forEach(we=>{let Ne=we.element;this._getPreviousPlayers(Ne,!1,we.namespaceId,we.triggerName,null).forEach(kt=>{Hn(Ht,Ne,[]).push(kt),kt.destroy()})});let ar=j.filter(we=>KA(we,l,u)),Fr=new Map;YA(Fr,this.driver,ge,u,Jo).forEach(we=>{KA(we,l,u)&&ar.push(we)});let ka=new Map;x.forEach((we,Ne)=>{YA(ka,this.driver,new Set(we),l,hp)}),ar.forEach(we=>{let Ne=Fr.get(we),Ge=ka.get(we);Fr.set(we,new Map([...Ne?.entries()??[],...Ge?.entries()??[]]))});let Cg=[],nC=[],oC={};a.forEach(we=>{let{element:Ne,player:Ge,instruction:kt}=we;if(t.has(Ne)){if(f.has(Ne)){Ge.onDestroy(()=>rr(Ne,kt.toStyles)),Ge.disabled=!0,Ge.overrideTotalTime(kt.totalTime),n.push(Ge);return}let Pi=oC;if(_i.size>1){let An=Ne,Nr=[];for(;An=An.parentNode;){let ui=_i.get(An);if(ui){Pi=ui;break}Nr.push(An)}Nr.forEach(ui=>_i.set(ui,Pi))}let Oo=this._buildAnimation(Ge.namespaceId,kt,Ht,o,ka,Fr);if(Ge.setRealPlayer(Oo),Pi===oC)Cg.push(Ge);else{let An=this.playersByElement.get(Pi);An&&An.length&&(Ge.parentPlayer=Ta(An)),n.push(Ge)}}else bs(Ne,kt.fromStyles),Ge.onDestroy(()=>rr(Ne,kt.toStyles)),nC.push(Ge),f.has(Ne)&&n.push(Ge)}),nC.forEach(we=>{let Ne=o.get(we.element);if(Ne&&Ne.length){let Ge=Ta(Ne);we.setRealPlayer(Ge)}}),n.forEach(we=>{we.parentPlayer?we.syncPlayerEvents(we.parentPlayer):we.destroy()});for(let we=0;we!Oo.destroyed);Pi.length?DY(this,Ne,Pi):this.processLeaveNode(Ne)}return j.length=0,Cg.forEach(we=>{this.players.push(we),we.onDone(()=>{we.destroy();let Ne=this.players.indexOf(we);this.players.splice(Ne,1)}),we.play()}),Cg}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,r,t,n,o){let a=[];if(r){let s=this.playersByQueriedElement.get(e);s&&(a=s)}else{let s=this.playersByElement.get(e);if(s){let l=!o||o==Kd;s.forEach(u=>{u.queued||!l&&u.triggerName!=n||a.push(u)})}}return(t||n)&&(a=a.filter(s=>!(t&&t!=s.namespaceId||n&&n!=s.triggerName))),a}_beforeAnimationBuild(e,r,t){let n=r.triggerName,o=r.element,a=r.isRemovalTransition?void 0:e,s=r.isRemovalTransition?void 0:n;for(let l of r.timelines){let u=l.element,f=u!==o,v=Hn(t,u,[]);this._getPreviousPlayers(u,f,a,s,r.toState).forEach(x=>{let E=x.getRealPlayer();E.beforeDestroy&&E.beforeDestroy(),x.destroy(),v.push(x)})}bs(o,r.fromStyles)}_buildAnimation(e,r,t,n,o,a){let s=r.triggerName,l=r.element,u=[],f=new Set,v=new Set,C=r.timelines.map(E=>{let R=E.element;f.add(R);let j=R[Ao];if(j&&j.removedBeforeQueried)return new _a(E.duration,E.delay);let F=R!==l,ge=SY((t.get(R)||bY).map(Ht=>Ht.getRealPlayer())).filter(Ht=>{let _i=Ht;return _i.element?_i.element===R:!1}),ot=o.get(R),rt=a.get(R),Mi=ZA(this._normalizer,E.keyframes,ot,rt),Nt=this._buildPlayer(E,Mi,ge);if(E.subTimeline&&n&&v.add(R),F){let Ht=new eu(e,s,R);Ht.setRealPlayer(Nt),u.push(Ht)}return Nt});u.forEach(E=>{Hn(this.playersByQueriedElement,E.element,[]).push(E),E.onDone(()=>wY(this.playersByQueriedElement,E.element,E))}),f.forEach(E=>mo(E,BA));let x=Ta(C);return x.onDestroy(()=>{f.forEach(E=>ql(E,BA)),rr(l,r.toStyles)}),v.forEach(E=>{Hn(n,E,[]).push(x)}),x}_buildPlayer(e,r,t){return r.length>0?this.driver.animate(e.element,r,e.duration,e.delay,e.easing,t):new _a(e.duration,e.delay)}},eu=class{constructor(e,r,t){this.namespaceId=e,this.triggerName=r,this.element=t,this._player=new _a,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((r,t)=>{r.forEach(n=>Uw(e,t,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let r=this._player;r.triggerCallback&&e.onStart(()=>r.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,r){Hn(this._queuedCallbacks,e,[]).push(r)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1: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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let r=this._player;r.triggerCallback&&r.triggerCallback(e)}};function wY(i,e,r){let t=i.get(e);if(t){if(t.length){let n=t.indexOf(r);t.splice(n,1)}t.length==0&&i.delete(e)}return t}function CY(i){return i??null}function lg(i){return i&&i.nodeType===1}function xY(i){return i=="start"||i=="done"}function qA(i,e){let r=i.style.display;return i.style.display=e??"none",r}function YA(i,e,r,t,n){let o=[];r.forEach(l=>o.push(qA(l)));let a=[];t.forEach((l,u)=>{let f=new Map;l.forEach(v=>{let C=e.computeStyle(u,v,n);f.set(v,C),(!C||C.length==0)&&(u[Ao]=yY,a.push(u))}),i.set(u,f)});let s=0;return r.forEach(l=>qA(l,o[s++])),a}function QA(i,e){let r=new Map;if(i.forEach(s=>r.set(s,[])),e.length==0)return r;let t=1,n=new Set(e),o=new Map;function a(s){if(!s)return t;let l=o.get(s);if(l)return l;let u=s.parentNode;return r.has(u)?l=u:n.has(u)?l=t:l=a(u),o.set(s,l),l}return e.forEach(s=>{let l=a(s);l!==t&&r.get(l).push(s)}),r}function mo(i,e){i.classList?.add(e)}function ql(i,e){i.classList?.remove(e)}function DY(i,e,r){Ta(r).onDone(()=>i.processLeaveNode(e))}function SY(i){let e=[];return lO(i,e),e}function lO(i,e){for(let r=0;rn.add(o)):e.set(i,t),r.delete(i),!0}var Ql=class{constructor(e,r,t){this._driver=r,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(n,o)=>{},this._transitionEngine=new jw(e.body,r,t),this._timelineEngine=new Lw(e.body,r,t),this._transitionEngine.onRemovalComplete=(n,o)=>this.onRemovalComplete(n,o)}registerTrigger(e,r,t,n,o){let a=e+"-"+n,s=this._triggerCache[a];if(!s){let l=[],u=[],f=oO(this._driver,o,l,u);if(l.length)throw Eq(n,l);u.length&&void 0,s=mY(n,f,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(r,n,s)}register(e,r){this._transitionEngine.register(e,r)}destroy(e,r){this._transitionEngine.destroy(e,r)}onInsert(e,r,t,n){this._transitionEngine.insertNode(e,r,t,n)}onRemove(e,r,t){this._transitionEngine.removeNode(e,r,t)}disableAnimations(e,r){this._transitionEngine.markElementAsDisabled(e,r)}process(e,r,t,n){if(t.charAt(0)=="@"){let[o,a]=VA(t),s=n;this._timelineEngine.command(o,r,a,s)}else this._transitionEngine.trigger(e,r,t,n)}listen(e,r,t,n,o){if(t.charAt(0)=="@"){let[a,s]=VA(t);return this._timelineEngine.listen(a,r,s,o)}return this._transitionEngine.listen(e,r,t,n,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function IY(i,e){let r=null,t=null;return Array.isArray(e)&&e.length?(r=Sw(e[0]),e.length>1&&(t=Sw(e[e.length-1]))):e instanceof Map&&(r=Sw(e)),r||t?new Bw(i,r,t):null}var Yl=class Yl{constructor(e,r,t){this._element=e,this._startStyles=r,this._endStyles=t,this._state=0;let n=Yl.initialStylesByElement.get(e);n||Yl.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&rr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rr(this._element,this._initialStyles),this._endStyles&&(rr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Yl.initialStylesByElement.delete(this._element),this._startStyles&&(bs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bs(this._element,this._endStyles),this._endStyles=null),rr(this._element,this._initialStyles),this._state=3)}};Yl.initialStylesByElement=new WeakMap;var Bw=Yl;function Sw(i){let e=null;return i.forEach((r,t)=>{MY(t)&&(e=e||new Map,e.set(t,r))}),e}function MY(i){return i==="display"||i==="position"}var _g=class{constructor(e,r,t,n){this.element=e,this.keyframes=r,this.options=t,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();this.domPlayer.addEventListener("finish",r),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",r)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let r=[];return e.forEach(t=>{r.push(Object.fromEntries(t))}),r}_triggerWebAnimation(e,r,t){return e.animate(this._convertKeyframesToObject(r),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,n)=>{n!=="offset"&&e.set(n,this._finished?t:qw(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let r=e==="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},vg=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,r){return XA(e,r)}getParentElement(e){return $w(e)}query(e,r,t){return JA(e,r,t)}computeStyle(e,r,t){return qw(e,r)}animate(e,r,t,n,o,a=[]){let s=n==0?"both":"forwards",l={duration:t,delay:n,fill:s};o&&(l.easing=o);let u=new Map,f=a.filter(x=>x instanceof _g);Yq(t,n)&&f.forEach(x=>{x.currentSnapshot.forEach((E,R)=>u.set(R,E))});let v=Wq(r).map(x=>new Map(x));v=Qq(e,v,u);let C=IY(e,v);return new _g(e,v,l,C)}};var cg="@",cO="@.disabled",bg=class{constructor(e,r,t,n){this.namespaceId=e,this.delegate=r,this.engine=t,this._onDestroy=n,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,r){return this.delegate.createElement(e,r)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,r){this.delegate.appendChild(e,r),this.engine.onInsert(this.namespaceId,r,e,!1)}insertBefore(e,r,t,n=!0){this.delegate.insertBefore(e,r,t),this.engine.onInsert(this.namespaceId,r,e,n)}removeChild(e,r,t){this.engine.onRemove(this.namespaceId,r,this.delegate)}selectRootElement(e,r){return this.delegate.selectRootElement(e,r)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,r,t,n){this.delegate.setAttribute(e,r,t,n)}removeAttribute(e,r,t){this.delegate.removeAttribute(e,r,t)}addClass(e,r){this.delegate.addClass(e,r)}removeClass(e,r){this.delegate.removeClass(e,r)}setStyle(e,r,t,n){this.delegate.setStyle(e,r,t,n)}removeStyle(e,r,t){this.delegate.removeStyle(e,r,t)}setProperty(e,r,t){r.charAt(0)==cg&&r==cO?this.disableAnimations(e,!!t):this.delegate.setProperty(e,r,t)}setValue(e,r){this.delegate.setValue(e,r)}listen(e,r,t){return this.delegate.listen(e,r,t)}disableAnimations(e,r){this.engine.disableAnimations(e,r)}},zw=class extends bg{constructor(e,r,t,n,o){super(r,t,n,o),this.factory=e,this.namespaceId=r}setProperty(e,r,t){r.charAt(0)==cg?r.charAt(1)=="."&&r==cO?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,r.slice(1),t):this.delegate.setProperty(e,r,t)}listen(e,r,t){if(r.charAt(0)==cg){let n=TY(e),o=r.slice(1),a="";return o.charAt(0)!=cg&&([o,a]=kY(o)),this.engine.listen(this.namespaceId,n,o,a,s=>{let l=s._data||-1;this.factory.scheduleListenerCallback(l,t,s)})}return this.delegate.listen(e,r,t)}};function TY(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function kY(i){let e=i.indexOf("."),r=i.substring(0,e),t=i.slice(e+1);return[r,t]}var yg=class{constructor(e,r,t){this.delegate=e,this.engine=r,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(n,o)=>{let a=o?.parentNode(n);a&&o.removeChild(a,n)}}createRenderer(e,r){let t="",n=this.delegate.createRenderer(e,r);if(!e||!r?.data?.animation){let u=this._rendererCache,f=u.get(n);if(!f){let v=()=>u.delete(n);f=new bg(t,n,this.engine,v),u.set(n,f)}return f}let o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(o,a,e,u.name,u)};return r.data.animation.forEach(s),new zw(this,a,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,t){if(e>=0&&er(t));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(o=>{let[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),n.push([r,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var OY=(()=>{let e=class e extends Ql{constructor(t,n,o){super(t,n,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(n){return new(n||e)(M(ae),M(ys),M(ws))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function RY(){return new mg}function PY(i,e,r){return new yg(i,e,r)}var uO=[{provide:ws,useFactory:RY},{provide:Ql,useClass:OY},{provide:Kr,useFactory:PY,deps:[bh,Ql,Z]}],dO=[{provide:ys,useFactory:()=>new vg},{provide:Mt,useValue:"BrowserAnimations"},...uO],FY=[{provide:ys,useClass:Ww},{provide:Mt,useValue:"NoopAnimations"},...uO],mO=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?FY:dO}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:dO,imports:[wh]});let i=e;return i})();var LY=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],VY=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function jY(i,e){i&1&&(c(0,"span",3),se(1,1),d())}function BY(i,e){i&1&&(c(0,"span",6),se(1,2),d())}var zY='.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color)}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}',UY=[[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],HY=["mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function $Y(i,e){i&1&&I(0,"span",0)}function WY(i,e){i&1&&(c(0,"span",2),se(1),d())}function GY(i,e){i&1&&se(0,1)}function qY(i,e){i&1&&I(0,"span",7)}function YY(i,e){if(i&1&&D(0,GY,1,0)(1,qY,1,0,"span",7),i&2){let r=_();De(r.contentEditInput?0:1)}}function QY(i,e){i&1&&se(0,2)}function KY(i,e){i&1&&(c(0,"span",5),se(1,3),d())}var fO=["*"],ZY=".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}",gO=new O("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),hO=new O("MatChipAvatar"),pO=new O("MatChipTrailingIcon"),Zw=new O("MatChipRemove"),eC=new O("MatChip"),wg=(()=>{let e=class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(t){this._disabled=t}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(t,n){this._elementRef=t,this._parentChip=n,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,t.nativeElement.nodeName==="BUTTON"&&t.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};e.\u0275fac=function(n){return new(n||e)(h(G),h(eC))},e.\u0275dir=N({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,o){n&1&&b("click",function(s){return o._handleClick(s)})("keydown",function(s){return o._handleKeydown(s)}),n&2&&(ie("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),ne("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?-1:Zt(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[he]});let i=e;return i})();var _O=(()=>{let e=class e extends wg{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(t){this.disabled||(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&ie("aria-hidden",null)},standalone:!0,features:[ye([{provide:Zw,useExisting:e}]),be]});let i=e;return i})(),XY=0,Xw=(()=>{let e=class e{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}constructor(t,n,o,a,s,l,u,f){this._changeDetectorRef=t,this._elementRef=n,this._ngZone=o,this._focusMonitor=a,this._globalRippleOptions=u,this._onFocus=new W,this._onBlur=new W,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${XY++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.tabIndex=-1,this.removed=new T,this.destroyed=new T,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=k(cp),this._injector=k(Pe),this._document=s,this._animationsDisabled=l==="NoopAnimations",f!=null&&(this.tabIndex=parseInt(f)??-1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let t=this._elementRef.nativeElement;this._isBasicChip=t.hasAttribute(this.basicChipAttrName)||t.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=yt(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(t){(t.keyCode===8&&!t.repeat||t.keyCode===46)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===t||o.contains(t)})}_getActions(){let t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_getTabIndex(){return this.role?this.disabled?-1:this.tabIndex:null}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let n=t!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):ni(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(G),h(Z),h(wi),h(ae),h(Mt,8),h(Tl,8),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,hO,5),Fe(a,pO,5),Fe(a,Zw,5),Fe(a,hO,5),Fe(a,pO,5),Fe(a,Zw,5)),n&2){let s;Q(s=K())&&(o.leadingIcon=s.first),Q(s=K())&&(o.trailingIcon=s.first),Q(s=K())&&(o.removeIcon=s.first),Q(s=K())&&(o._allLeadingIcons=s),Q(s=K())&&(o._allTrailingIcons=s),Q(s=K())&&(o._allRemoveIcons=s)}},viewQuery:function(n,o){if(n&1&&ce(wg,5),n&2){let a;Q(a=K())&&(o.primaryAction=a.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&(Di("id",o.id),ie("role",o.role)("tabindex",o._getTabIndex())("aria-label",o.ariaLabel),qt("mat-"+(o.color||"primary")),ne("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",Y],highlighted:[2,"highlighted","highlighted",Y],disableRipple:[2,"disableRipple","disableRipple",Y],disabled:[2,"disabled","disabled",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:Zt(t)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[ye([{provide:eC,useExisting:e}]),he,re],ngContentSelectors:VY,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(Ue(LY),I(0,"span",0),c(1,"span",1)(2,"span",2),D(3,jY,2,0,"span",3),c(4,"span",4),se(5),I(6,"span",5),d()()(),D(7,BY,2,0,"span",6)),n&2&&(m(2),p("isInteractive",!1),m(),De(o.leadingIcon?3:-1),m(4),De(o._hasTrailingIcon()?7:-1))},dependencies:[wg],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color)}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Kw=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._document=n}initialize(t){this.getNativeElement().focus(),this.setValue(t)}getNativeElement(){return this._elementRef.nativeElement}setValue(t){this.getNativeElement().textContent=t,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let t=this._document.createRange();t.selectNodeContents(this.getNativeElement()),t.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(t)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(ae))},e.\u0275dir=N({type:e,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"],standalone:!0});let i=e;return i})(),tC=(()=>{let e=class e extends Xw{constructor(t,n,o,a,s,l,u,f){super(t,n,o,a,s,l,u,f),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new T,this._isEditing=!1,this.role="row",this._onBlur.pipe(me(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(t){t.keyCode===13&&!this.disabled?this._isEditing?(t.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(t):this._isEditing?t.stopPropagation():super._handleKeydown(t)}_handleDoubleclick(t){!this.disabled&&this.editable&&this._startEditing(t)}_startEditing(t){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(t.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,ni(()=>{this._getEditInput().initialize(n),this._editStartPending=!1},{injector:this._injector})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(G),h(Z),h(wi),h(ae),h(Mt,8),h(Tl,8),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,a){if(n&1&&Fe(a,Kw,5),n&2){let s;Q(s=K())&&(o.contentEditInput=s.first)}},viewQuery:function(n,o){if(n&1&&ce(Kw,5),n&2){let a;Q(a=K())&&(o.defaultEditInput=a.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(n,o){n&1&&b("focus",function(s){return o._handleFocus(s)})("dblclick",function(s){return o._handleDoubleclick(s)}),n&2&&(Di("id",o.id),ie("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),ne("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{editable:"editable"},outputs:{edited:"edited"},standalone:!0,features:[ye([{provide:Xw,useExisting:e},{provide:eC,useExisting:e}]),be,re],ngContentSelectors:HY,decls:10,vars:10,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],["matChipEditInput",""]],template:function(n,o){n&1&&(Ue(UY),D(0,$Y,1,0,"span",0),c(1,"span",1),D(2,WY,2,0,"span",2),c(3,"span",3),D(4,YY,2,1)(5,QY,1,0),I(6,"span",4),d()(),D(7,KY,2,0,"span",5),c(8,"span",6),g(9),d()),n&2&&(De(o._isEditing?-1:0),m(),p("tabIndex",o.tabIndex)("disabled",o.disabled),ie("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),m(),De(o.leadingIcon?2:-1),m(2),De(o._isEditing?4:5),m(3),De(o._hasTrailingIcon()?7:-1),m(),p("id",o._ariaDescriptionId),m(),He(o.ariaDescription))},dependencies:[wg,Kw],styles:[zY],encapsulation:2,changeDetection:0});let i=e;return i})(),JY=(()=>{let e=class e{get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(t){this._explicitRole=t}get focused(){return this._hasFocusedChip()}constructor(t,n,o){this._elementRef=t,this._changeDetectorRef=n,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new W,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new Yn}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(t=>{t.disabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&t{this.tabIndex=t,this._changeDetectorRef.markForCheck()})}}_getChipStream(t){return this._chips.changes.pipe(At(null),It(()=>yt(...this._chips.map(t))))}_originatesFromChip(t){let n=t.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-mdc-chip"))return!0;n=n.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(At(this._chips)).subscribe(t=>{let n=[];t.forEach(o=>o._getActions().forEach(a=>n.push(a))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new ma(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(me(this._destroyed)).subscribe(({chip:t})=>{let n=t._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(me(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return!t.isInteractive||t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(At(null),me(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(me(this._destroyed)).subscribe(t=>{let o=this._chips.toArray().indexOf(t.chip);this._isValidIndex(o)&&t.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[t];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};e.\u0275fac=function(n){return new(n||e)(h(G),h(ue),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-set"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,Xw,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&ie("role",o.role)},inputs:{disabled:[2,"disabled","disabled",Y],role:"role",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Zt(t)]},standalone:!0,features:[he,re],ngContentSelectors:fO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Ue(),c(0,"div",0),se(1),d())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let i=e;return i})();var Jw=class{constructor(e,r){this.source=e,this.value=r}},vO=(()=>{let e=class e extends JY{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(ir.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(t){this._value=t}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,l,u){super(t,n,o),this.ngControl=u,this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new T,this.valueChange=new T,this._chips=void 0,this.stateChanges=new W,this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Ir(l,u,s,a,this.stateChanges)}ngOnInit(){this.ngControl&&this.ngControl.control?.events.pipe(me(this._destroyed)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngAfterContentInit(){this.chipBlurChanges.pipe(me(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),yt(this.chipFocusChanges,this._chips.changes).pipe(me(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit(),this._chipInput}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(t){this._chipInput=t,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(t){!this.disabled&&!this._originatesFromChip(t)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(t){this._ariaDescribedbyIds=t,this._chipInput?.setDescribedByIds(t)}writeValue(t){this._value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(t){t.keyCode===9?this._chipInput.focused&&Ot(t,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(t.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(t),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let t=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=t,this.change.emit(new Jw(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(ue),h(Tt,8),h(Mo,8),h(us,8),h(Mr),h(kn,10))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,tC,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(ie("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),ne("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-invalid",o.errorState)("mat-mdc-chip-list-required",o.required))},inputs:{disabled:[2,"disabled","disabled",Y],placeholder:"placeholder",required:[2,"required","required",Y],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},standalone:!0,features:[ye([{provide:Da,useExisting:e}]),he,be,re],ngContentSelectors:fO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Ue(),c(0,"div",0),se(1),d())},styles:[ZY],encapsulation:2,changeDetection:0});let i=e;return i})(),eQ=0,bO=(()=>{let e=class e{get chipGrid(){return this._chipGrid}set chipGrid(t){t&&(this._chipGrid=t,this._chipGrid.registerInput(this))}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(t){this._disabled=t}get empty(){return!this.inputElement.value}constructor(t,n,o){this._elementRef=t,this.focused=!1,this.addOnBlur=!1,this.chipEnd=new T,this.placeholder="",this.id=`mat-mdc-chip-list-input-${eQ++}`,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=n.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(t){this.empty&&t.keyCode===8?(t.repeat||this._chipGrid._focusLastChip(),t.preventDefault()):this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._chipGrid.stateChanges.next()}_emitChipEnd(t){(!t||this._isSeparatorKey(t))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),t?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}setDescribedByIds(t){let n=this._elementRef.nativeElement;t.length?n.setAttribute("aria-describedby",t.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(t){return!Ot(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(gO),h(To,8))},e.\u0275dir=N({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._keydown(s)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(Di("id",o.id),ie("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",Y],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",Y]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],standalone:!0,features:[he,Qe]});let i=e;return i})();var yO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Mr,{provide:gO,useValue:{separatorKeyCodes:[13]}}],imports:[fe,Tr,fe]});let i=e;return i})();var wO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var CO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[fe,wO,Vn]});let i=e;return i})();var iQ=["*",[["mat-toolbar-row"]]],nQ=["*","mat-toolbar-row"],oQ=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let i=e;return i})(),xO=(()=>{let e=class e{constructor(t,n,o){this._elementRef=t,this._platform=n,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(ae))},e.\u0275cmp=S({type:e,selectors:[["mat-toolbar"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,oQ,5),n&2){let s;Q(s=K())&&(o._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(qt(o.color?"mat-"+o.color:""),ne("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[re],ngContentSelectors:nQ,decls:2,vars:0,template:function(n,o){n&1&&(Ue(iQ),se(0),se(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.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;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let i=e;return i})();var DO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[fe,fe]});let i=e;return i})();var SO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[{provide:wy,useValue:{floatLabel:"always",appearance:"outline"}},{provide:ap,useValue:udsData.language}],imports:[Si,rT,Fp,DO,tr,Mk,Nl,CO,hM,hs,Rk,mf,_A,nM,ek,UT,WT,jf,Ff,mT,yO,CA,Zk,Uk,_T,zf,xk,fk]});let i=e;return i})();function aQ(i,e){if(i&1){let r=A();c(0,"button",7),b("click",function(){let n=y(r).$implicit,o=_();return w(o.changeLang(n))}),g(1),d()}if(i&2){let r=e.$implicit;m(),He(r.name)}}function sQ(i,e){if(i&1&&(c(0,"button",12)(1,"i",8),g(2,"face"),d(),g(3),d()),i&2){let r=_(),t=Ce(7);p("matMenuTriggerFor",t),m(3),He(r.api.user.user)}}function lQ(i,e){if(i&1&&(c(0,"button",18),g(1),c(2,"i",8),g(3,"arrow_drop_down"),d()()),i&2){let r=_(),t=Ce(7);p("matMenuTriggerFor",t),m(),P("",r.api.user.user," ")}}var EO=(()=>{let e=class e{constructor(t){this.api=t,this.lang={id:"",name:""},this.isNavbarCollapsed=!0;let n=t.config.language;this.langs=[];for(let o of t.config.available_languages)o.id===n?this.lang=o:this.langs.push(o)}ngOnInit(){}changeLang(t){this.lang=t;let n=document.getElementById("id_language");return n&&n.setAttribute("value",t.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-navbar"]],decls:39,vars:13,consts:[["appMenu","matMenu"],["userMenu","matMenu"],["shrink","matMenu"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(n,o){if(n&1){let a=A();c(0,"form",3),I(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),D(5,aQ,2,1,"button",6),d(),c(6,"mat-menu",null,1)(8,"button",7),b("click",function(){return y(a),w(o.user())}),c(9,"i",8),g(10,"home"),d(),c(11,"uds-translate"),g(12,"User mode"),d()(),c(13,"button",7),b("click",function(){return y(a),w(o.logout())}),c(14,"i",9),g(15,"exit_to_app"),d(),c(16,"uds-translate"),g(17,"Logout"),d()()(),c(18,"mat-menu",10,2),D(20,sQ,4,2,"button",11),c(21,"button",12)(22,"i",8),g(23,"language"),d(),g(24),d()(),c(25,"mat-toolbar",13)(26,"button",14),I(27,"img",15),d(),I(28,"span",16),c(29,"div",17)(30,"button",18),g(31),c(32,"i",8),g(33,"arrow_drop_down"),d()(),D(34,lQ,4,2,"button",19),d(),c(35,"div",20)(36,"button",21)(37,"i",8),g(38,"menu"),d()()()()}if(n&2){let a=Ce(4),s=Ce(19);ta("action",o.api.config.urls.changeLang,Ie),m(),ta("name",o.api.csrfField),ta("value",o.api.csrfToken),m(),ta("value",o.lang.id),m(3),p("ngForOf",o.langs),m(15),p("ngIf",o.api.user.isLogged),m(),p("matMenuTriggerFor",a),m(3),He(o.lang.name),m(3),p("src",o.api.staticURL("admin/img/udsicon.png"),Ie),m(3),p("matMenuTriggerFor",a),m(),P("",o.lang.name," "),m(3),p("ngIf",o.api.user.isLogged),m(2),p("matMenuTriggerFor",s)}},dependencies:[$e,pe,gi,Pp,kp,Mo,xO,ke,Gi,Ia,fs,Wf,le],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.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}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:300}.uds-nav[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000}@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}} .dark-theme .uds-nav .expanded button{color:#fff!important}']});let i=e;return i})();var IO=(()=>{let e=class e{constructor(){}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),g(1,"\xA9 2012-2023 "),c(2,"a",0),g(3,"Virtual Cable S.L.U."),d()())},styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']});let i=e;return i})();function uQ(i,e){if(i&1&&(c(0,"a",27),I(1,"img",2),c(2,"uds-translate"),g(3,"Groups"),d()()),i&2){let r=_();m(),p("src",r.icon("groups"),Ie)}}function mQ(i,e){if(i&1){let r=A();c(0,"a",3),b("click",function(){y(r);let n=_();return w(n.toggleConfig())}),I(1,"img",2),c(2,"span")(3,"uds-translate"),g(4,"Tools"),d(),c(5,"i",4),g(6,"arrow_drop_down"),d()()()}if(i&2){let r=_();m(),p("src",r.icon("tools"),Ie)}}var MO=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){}icon(t){return this.api.staticURL("admin/img/icons/"+t+".png")}toggle(t){let n=new Map([["connectivity",o=>this.connectivityShown=o?!this.connectivityShown:!1],["pools",o=>this.poolsShown=o?!this.poolsShown:!1],["config",o=>this.configShown=o?!this.configShown:!1],["tokens",o=>this.tokensShown=o?!this.tokensShown:!1],["auths",o=>this.authsShown=o?!this.authsShown:!1],["services",o=>this.servicesShown=o?!this.servicesShown:!1]]);for(let o of n)o[1](o[0]===t)}toggleConnectivity(){this.toggle("connectivity")}togglePools(){this.toggle("pools")}toggleConfig(){this.toggle("config")}toggleTokens(){this.toggle("tokens")}toggleAuths(){this.toggle("auths")}toggleServices(){this.toggle("services")}flushCache(){this.rest.system.flushCache().then(()=>{this.api.gui.snackbar.open(django.gettext("Cache flushed"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-sidebar"]],decls:124,vars:33,consts:[[1,"sidebar","mat-toolbar","mat-primary"],["mat-button","","routerLink","/summary",1,"sidebar-link"],[1,"icon",3,"src"],["mat-button","",1,"sidebar-link",3,"click"],[1,"material-icons"],[1,"submenu",3,"hidden"],["mat-button","","routerLink","/services/providers",1,"sidebar-link"],["mat-button","","routerLink","/services/servers",1,"sidebar-link"],["mat-button","","routerLink","/authenticators",1,"sidebar-link"],["mat-button","","routerLink","/mfas",1,"sidebar-link"],["mat-button","","routerLink","/osmanagers",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/transports",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/networks",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/tunnels",1,"sidebar-link"],["mat-button","","routerLink","/pools/service-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/meta-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups","class","sidebar-link",4,"ngIf"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","","class","sidebar-link",3,"click",4,"ngIf"],["mat-button","","routerLink","/tools/gallery",1,"sidebar-link"],["mat-button","","routerLink","/tools/reports",1,"sidebar-link"],["mat-button","","routerLink","/tools/notifiers",1,"sidebar-link"],[1,"submenu2",3,"hidden"],["mat-button","","routerLink","/tools/tokens/actor",1,"sidebar-link"],["mat-button","","routerLink","/tools/tokens/server",1,"sidebar-link"],["mat-button","","routerLink","/tools/configuration",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups",1,"sidebar-link"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),I(2,"img",2),c(3,"uds-translate"),g(4,"Summary"),d()(),c(5,"a",3),b("click",function(){return o.toggleServices()}),I(6,"img",2),c(7,"span")(8,"uds-translate"),g(9,"Services"),d(),c(10,"i",4),g(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),I(14,"img",2),c(15,"uds-translate"),g(16,"Providers"),d()(),c(17,"a",7),I(18,"img",2),c(19,"uds-translate"),g(20,"Servers"),d()()(),c(21,"a",3),b("click",function(){return o.toggleAuths()}),I(22,"img",2),c(23,"span")(24,"uds-translate"),g(25,"Authentication"),d(),c(26,"i",4),g(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),I(30,"img",2),c(31,"uds-translate"),g(32,"Authenticators"),d()(),c(33,"a",9),I(34,"img",2),c(35,"uds-translate"),g(36,"Multi Factor"),d()()(),c(37,"a",10),I(38,"img",2),c(39,"uds-translate"),g(40,"Os Managers"),d()(),c(41,"a",3),b("click",function(){return o.toggleConnectivity()}),I(42,"img",2),c(43,"span")(44,"uds-translate"),g(45,"Connectivity"),d(),c(46,"i",4),g(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),I(50,"img",2),c(51,"uds-translate"),g(52,"Transports"),d()(),c(53,"a",12),I(54,"img",2),c(55,"uds-translate"),g(56,"Networks"),d()(),c(57,"a",13),I(58,"img",2),c(59,"uds-translate"),g(60,"Tunnels"),d()()(),c(61,"a",3),b("click",function(){return o.togglePools()}),I(62,"img",2),c(63,"span")(64,"uds-translate"),g(65,"Pools"),d(),c(66,"i",4),g(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),I(70,"img",2),c(71,"uds-translate"),g(72,"Service pools"),d()(),c(73,"a",15),I(74,"img",2),c(75,"uds-translate"),g(76,"Meta pools"),d()(),D(77,uQ,4,1,"a",16),c(78,"a",17),I(79,"img",2),c(80,"uds-translate"),g(81,"Calendars"),d()(),c(82,"a",18),I(83,"img",2),c(84,"uds-translate"),g(85,"Accounting"),d()()(),D(86,mQ,7,1,"a",19),c(87,"div",5)(88,"a",20),I(89,"img",2),c(90,"uds-translate"),g(91,"Gallery"),d()(),c(92,"a",21),I(93,"img",2),c(94,"uds-translate"),g(95,"Reports"),d()(),c(96,"a",22),I(97,"img",2),c(98,"uds-translate"),g(99,"Notifiers"),d()(),c(100,"a",3),b("click",function(){return o.tokensShown=!o.tokensShown}),I(101,"img",2),c(102,"span")(103,"uds-translate"),g(104,"Tokens"),d(),c(105,"i",4),g(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),I(109,"img",2),c(110,"uds-translate"),g(111,"Actor"),d()(),c(112,"a",25),I(113,"img",2),c(114,"uds-translate"),g(115,"Servers"),d()()(),c(116,"a",26),I(117,"img",2),c(118,"uds-translate"),g(119,"Configuration"),d()(),c(120,"a",3),b("click",function(){return o.flushCache()}),I(121,"img",2),c(122,"uds-translate"),g(123,"Flush Cache"),d()()()()),n&2&&(m(2),p("src",o.icon("dashboard-monitor"),Ie),m(4),p("src",o.icon("providers"),Ie),m(6),p("hidden",!o.servicesShown),m(2),p("src",o.icon("providers"),Ie),m(4),p("src",o.icon("servers"),Ie),m(4),p("src",o.icon("authentication"),Ie),m(6),p("hidden",!o.authsShown),m(2),p("src",o.icon("authenticators"),Ie),m(4),p("src",o.icon("mfas"),Ie),m(4),p("src",o.icon("osmanagers"),Ie),m(4),p("src",o.icon("connectivity"),Ie),m(6),p("hidden",!o.connectivityShown),m(2),p("src",o.icon("transports"),Ie),m(4),p("src",o.icon("networks"),Ie),m(4),p("src",o.icon("tunnels"),Ie),m(4),p("src",o.icon("poolsmenu"),Ie),m(6),p("hidden",!o.poolsShown),m(2),p("src",o.icon("pools"),Ie),m(4),p("src",o.icon("metas"),Ie),m(3),p("ngIf",o.api.user.isAdmin),m(2),p("src",o.icon("calendars"),Ie),m(4),p("src",o.icon("accounts"),Ie),m(3),p("ngIf",o.api.user.isAdmin),m(),p("hidden",!o.configShown),m(2),p("src",o.icon("gallery"),Ie),m(4),p("src",o.icon("reports"),Ie),m(4),p("src",o.icon("notifiers"),Ie),m(4),p("src",o.icon("tokens"),Ie),m(6),p("hidden",!o.tokensShown),m(2),p("src",o.icon("actors"),Ie),m(4),p("src",o.icon("servers"),Ie),m(4),p("src",o.icon("configuration"),Ie),m(4),p("src",o.icon("flush-cache"),Ie))},dependencies:[pe,gi,ya,le],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.sidebar[_ngcontent-%COMP%]{position:fixed;top:4rem;padding-top:12px;bottom:0;display:flex;flex-direction:column;overflow-y:auto;width:3.7rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1);box-shadow:0 16px 38px -12px #fafafa8f,0 4px 25px #fafafa1f,0 8px 10px -5px #fafafa33;overflow-x:hidden;z-index:25}.sidebar-link[_ngcontent-%COMP%]{display:flex;width:15rem;color:transparent;-moz-transition:color .5s cubic-bezier(.86,0,.07,1);transition:color .3s cubic-bezier(.86,0,.07,1);font-weight:300;font-size:1rem;justify-content:left;justify-items:center;padding-left:1rem;text-decoration:none}.sidebar[_ngcontent-%COMP%]:hover{width:15rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1)}.sidebar[_ngcontent-%COMP%]:hover .sidebar-link[_ngcontent-%COMP%]{color:#000}.submenu[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em -.5rem 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']});let i=e;return i})();function pQ(i,e){if(i&1&&I(0,"div",1),i&2){let r=_();p("innerHTML",r.messages,Gt)}}var TO=(()=>{let e=class e{constructor(t){this.api=t,this.messages="",this.visible=!1}ngOnInit(){let t=n=>n.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1");if(this.api.notices.length>0){let n='
';this.messages='
'+n+this.api.notices.map(t).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&D(0,pQ,1,1,"div",0),n&2&&p("ngIf",o.visible)},dependencies:[pe],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0rem;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]});let i=e;return i})();var kO=(()=>{let e=class e{constructor(t){this.api=t,this.title="UDS Admin"}get blackTheme(){return this.api.getFromStorage("blackTheme")==="true"}set blackTheme(t){this.api.putOnStorage("blackTheme",t.toString())}handleKeyboardEvent(t){t.altKey&&t.ctrlKey&&t.key==="b"&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){this.api.switchTheme(this.blackTheme)}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&b("keydown",function(s){return o.handleKeyboardEvent(s)},!1,_S)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(I(0,"uds-navbar")(1,"uds-sidebar"),c(2,"div",0)(3,"div",1),I(4,"uds-notices")(5,"router-outlet"),d(),c(6,"div",2),I(7,"uds-footer"),d()())},dependencies:[pb,EO,IO,MO,TO],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:calc(100% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]});let i=e;return i})();var AO=(()=>{let e=class e extends Sa{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var OO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","autocomplete"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("autocomplete","new-"+o.field.name))},dependencies:[lt,xe,Ri,ms,Se,_e,Ae,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();function gQ(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r),m(),P(" ",r," ")}}var RO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.values=[]}ngOnInit(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=t.map(n=>n.text)}_filter(){let t=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(t))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"],[3,"value"]],template:function(n,o){if(n&1){let a=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-autocomplete",null,0),D(5,gQ,2,2,"mat-option",1),d(),c(6,"input",2),H("ngModelChange",function(l){return y(a),$(o.field.value,l)||(o.field.value=l),w(l)}),b("change",function(){return y(a),w(o.changed.emit(o))}),d()()}if(n&2){let a=Ce(4);m(2),P(" ",o.field.gui.label," "),m(3),p("ngForOf",o._filter()),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",a)("autocomplete","new-"+o.field.name)}},dependencies:[$e,lt,xe,Ri,ms,Se,_e,Ae,ft,it,Ul,gs],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var PO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always"],["matInput","","type","number",3,"ngModelChange","change","ngModel","placeholder","required","disabled"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[lt,jn,xe,Ri,Se,_e,Ae,ft]});let i=e;return i})();var FO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModelChange","change","ngModel","placeholder","required","disabled","type"],["matSuffix","","mat-icon-button","",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),b("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),g(6),d()()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),He(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[lt,xe,Ri,Se,Gi,_e,Ae,ro,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var NO=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(n,o){}});let i=e;return i})();var LO=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:7,consts:[["floatLabel","auto"],["matInput","",3,"ngModelChange","ngModel","placeholder","required","readonly","rows","maxlength"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"textarea",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",!!o.field.gui.required)("readonly",o.field.gui.readonly===!0)("rows",o.field.gui.lines||3)("maxlength",o.field.gui.length||255))},dependencies:[lt,xe,Ri,ms,Se,_e,Ae,ft]});let i=e;return i})();function _Q(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.text," ")}}var VO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.filter=""}setValue(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",t.length>0&&!t.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&t.length>0&&(this.field.value=t[0].id)}ngOnInit(){this.setValue()}filteredValues(){let t=this.field.gui.choices||[];if(this.setValue(),!this.filter)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:9,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),D(5,_Q,2,2,"mat-option",2),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),p("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),p("ngForOf",o.filteredValues()))},dependencies:[$e,xe,Ri,Se,_e,Ae,vt,it,di]});let i=e;return i})();function vQ(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.text," ")}}var jO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||new Array}filteredValues(){let t=this.field.gui.choices||[];if(!this.filter||t.length===0)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let t=this.field.value||[],n="";t.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of t)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(a=>a.id===o)?.text||o;return n}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),g(5),d(),c(6,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),D(7,vQ,2,2,"mat-option",2),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),P(" ",o.selectTriggerString()," "),m(),p("options",o.field.gui.choices),m(),p("ngForOf",o.filteredValues()))},dependencies:[$e,xe,Ri,Se,_e,Ae,vt,uf,it,di]});let i=e;return i})();function bQ(i,e){if(i&1){let r=A();c(0,"div",12)(1,"div",13),g(2),d(),c(3,"div",14),g(4," \xA0"),c(5,"a",15),b("click",function(){let n=y(r).index,o=_();return w(o.removeElement(n))}),c(6,"i",16),g(7,"close"),d()()()()}if(i&2){let r=e.$implicit;m(2),P(" ",r," ")}}var BO=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.values=[],this.input="",this.done=new Jt,this.data.values.forEach(s=>this.values.push(s))}static launch(t,n,o){let a=window.innerWidth<800?"50%":"30%";return t.gui.dialog.open(e,{width:a,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(t=>{this.values.push(t)}),this.input=""}checkKey(t){t.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(t){this.values.splice(t,1)}save(){this.data.values.length=0,this.values.forEach(t=>this.data.values.push(t)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"keyup","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),g(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),D(5,bQ,8,1,"div",3),d(),c(6,"div",4)(7,"button",5),b("click",function(){return o.removeAll()}),c(8,"uds-translate"),g(9,"Remove all"),d()()(),c(10,"div",6)(11,"mat-form-field",7)(12,"input",8),b("keyup",function(s){return o.checkKey(s)}),H("ngModelChange",function(s){return $(o.input,s)||(o.input=s),s}),d(),c(13,"button",9),b("click",function(){return o.addElements()}),c(14,"i",10),g(15,"add"),d()()()()()(),c(16,"mat-dialog-actions")(17,"button",5),b("click",function(){return o.cancel()}),c(18,"uds-translate"),g(19,"Cancel"),d()(),c(20,"button",11),b("click",function(){return o.save()}),c(21,"uds-translate"),g(22,"Ok"),d()()()),n&2&&(m(),P(" ",o.data.title,` +`))},dependencies:[xn],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0});let i=e;return i})();function aw(i){return i?.nodeName==="TD"}function sw(i){let e;return aw(i)?e=i:aw(i.parentNode)?e=i.parentNode:aw(i.parentNode?.parentNode)&&(e=i.parentNode.parentNode),e?.getAttribute("data-mat-row")!=null?e:null}function lw(i,e,r){return r!==null&&e!==r&&i=e&&i===r}function dw(i,e,r,t){return t&&e!==null&&r!==null&&e!==r&&i>=e&&i<=r}function nA(i){let e=i.changedTouches[0];return document.elementFromPoint(e.clientX,e.clientY)}var uo=class{constructor(e,r){this.start=e,this.end=r}},Gd=(()=>{let e=class e{constructor(t,n){this.selection=t,this._adapter=n,this._selectionChanged=new W,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,n){let o=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}};e.\u0275fac=function(n){Ja()},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),l9=(()=>{let e=class e extends Gd{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let t=new e(this._adapter);return t.updateSelection(this.selection,this),t}};e.\u0275fac=function(n){return new(n||e)(M(Oi))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function c9(i,e){return i||new l9(e)}var dA={provide:Gd,deps:[[new Qn,new yo,Gd],Oi],useFactory:c9};var uA=new O("MAT_DATE_RANGE_SELECTION_STRATEGY");var uw=7,d9=0,oA=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof uo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a,s){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rangeStrategy=s,this._rerenderSubscription=ve.EMPTY,this.activeDrag=null,this.selectedChange=new T,this._userSelection=new T,this.dragStarted=new T,this.dragEnded=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnChanges(t){let n=t.comparisonStart||t.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),t.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){let n=t.value,o=this._getDateFromDayOfMonth(n),a,s;this._selected instanceof uo?(a=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):a=s=this._getDateInCurrentMonth(this._selected),(a!==n||s!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&t.preventDefault();return;case 27:this._previewEnd!=null&&!Ot(t)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:t}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t})),t.preventDefault(),t.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(uw+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%uw,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:t,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,a=this._rangeStrategy.createPreview(o,this.selected,t);if(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end),this.activeDrag&&o){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,t);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(t){if(this.activeDrag)if(t.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,t.value,t.event);this.dragEnded.emit({value:n??null,event:t.event})}else this.dragEnded.emit({value:null,event:t.event})}_getDateFromDayOfMonth(t){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t)}_initWeekdays(){let t=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),a=this._dateAdapter.getDayOfWeekNames("long").map((s,l)=>({long:s,narrow:n[l],id:d9++}));this._weekdays=a.slice(t).concat(a.slice(0,t))}_createWeekCells(){let t=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,a=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,n){return!!(t&&n&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n))}_getCellCompareValue(t){if(t){let n=this._dateAdapter.getYear(t),o=this._dateAdapter.getMonth(t),a=this._dateAdapter.getDate(t);return new Date(n,o,a).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(t){t instanceof uo?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}_clearPreview(){this._previewStart=this._previewEnd=null}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(ga,8),h(Oi,8),h(Tt,8),h(uA,8))},e.\u0275cmp=S({type:e,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&ce(Wl,5),n&2){let a;Q(a=K())&&(o._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[Qe,re],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(n,o){n&1&&(c(0,"table",0)(1,"thead",1)(2,"tr"),br(3,Q7,5,2,"th",2,cA),d(),c(5,"tr",3),I(6,"th",4),d()(),c(7,"tbody",5),b("selectedValueChange",function(s){return o._dateSelected(s)})("activeDateChange",function(s){return o._updateActiveDate(s)})("previewChange",function(s){return o._previewChanged(s)})("dragStarted",function(s){return o.dragStarted.emit(s)})("dragEnded",function(s){return o._dragEnded(s)})("keyup",function(s){return o._handleCalendarBodyKeyup(s)})("keydown",function(s){return o._handleCalendarBodyKeydown(s)}),d()()),n&2&&(m(3),yr(o._weekdays),m(4),p("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[Wl],encapsulation:2,changeDetection:0});let i=e;return i})(),zn=24,mw=4,rA=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),mA(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof uo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o){this._changeDetectorRef=t,this._dateAdapter=n,this._dir=o,this._rerenderSubscription=ve.EMPTY,this.selectedChange=new T,this.yearSelected=new T,this.activeDateChange=new T,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let n=this._dateAdapter.getYear(this._activeDate)-$d(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){let n=t.value,o=this._dateAdapter.createDate(n,0,1),a=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-mw);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mw);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-$d(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,zn-$d(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-zn*10:-zn);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?zn*10:zn);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return $d(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(t){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,n,1));return this._dateAdapter.createDate(t,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(t){let n=this._dateAdapter.createDate(t,0,1),o=this._dateAdapter.getYearName(n),a=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new Wd(t,o,o,this._shouldEnableYear(t),a)}_shouldEnableYear(t){if(t==null||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){t instanceof uo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rerenderSubscription=ve.EMPTY,this.selectedChange=new T,this.monthSelected=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){let n=t.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let a=this._getDateFromMonth(n);this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,t[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_getDateFromMonth(t){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(t,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),a=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(o,"year"):void 0;return new Wd(t,n.toLocaleUpperCase(),a,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){let n=this._dateAdapter.getYear(this.activeDate);if(t==null||this._isYearAndMonthAfterMaxDate(n,t)||this._isYearAndMonthBeforeMinDate(n,t))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,t,1);for(let a=o;this._dateAdapter.getMonth(a)==t;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isYearAndMonthAfterMaxDate(t,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),a=this._dateAdapter.getMonth(this.maxDate);return t>o||t===o&&n>a}return!1}_isYearAndMonthBeforeMinDate(t,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),a=this._dateAdapter.getMonth(this.minDate);return t{let e=class e{constructor(t,n,o,a,s){this._intl=t,this.calendar=n,this._dateAdapter=o,this._dateFormats=a,this._id=`mat-calendar-header-${m9++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-zn)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:zn)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n):mA(this._dateAdapter,t,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-$d(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+zn-1,a=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[a,s]}};e.\u0275fac=function(n){return new(n||e)(h(qd),h(Wt(()=>hw)),h(Oi,8),h(ga,8),h(ue))},e.\u0275cmp=S({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[re],ngContentSelectors:K7,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(n,o){n&1&&(Ue(),c(0,"div",0)(1,"div",1)(2,"label",2),g(3),d(),c(4,"button",3),b("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),g(6),d(),vi(),c(7,"svg",5),I(8,"polygon",6),d()(),ea(),I(9,"div",7),se(10),c(11,"button",8),b("click",function(){return o.previousClicked()}),d(),c(12,"button",9),b("click",function(){return o.nextClicked()}),d()()()),n&2&&(m(2),p("id",o._periodButtonLabelId),m(),He(o.periodButtonDescription),m(),ie("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),He(o.periodButtonText),m(),ne("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),p("disabled",!o.previousEnabled()),ie("aria-label",o.prevButtonLabel),m(),p("disabled",!o.nextEnabled()),ie("aria-label",o.nextButtonLabel))},dependencies:[ke,Gi],encapsulation:2,changeDetection:0});let i=e;return i})(),hw=(()=>{let e=class e{get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){t instanceof uo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){let n=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&this.viewChanged.emit(n)}constructor(t,n,o,a){this._dateAdapter=n,this._dateFormats=o,this._changeDetectorRef=a,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new T,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this._userSelection=new T,this._userDragDrop=new T,this._activeDrag=null,this.stateChanges=new W,this._intlChanges=t.changes.subscribe(()=>{a.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Sn(this.headerComponent||pA),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){let n=t.minDate&&!this._dateAdapter.sameDate(t.minDate.previousValue,t.minDate.currentValue)?t.minDate:void 0,o=t.maxDate&&!this._dateAdapter.sameDate(t.maxDate.previousValue,t.maxDate.currentValue)?t.maxDate:void 0,a=n||o||t.dateFilter;if(a&&!a.firstChange){let s=this._getCurrentViewComponent();s&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(t){let n=t.value;(this.selected instanceof uo||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,n){this.activeDate=t,this.currentView=n}_dragStarted(t){this._activeDrag=t}_dragEnded(t){this._activeDrag&&(t.value&&this._userDragDrop.emit(t),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};e.\u0275fac=function(n){return new(n||e)(h(qd),h(Oi,8),h(ga,8),h(ue))},e.\u0275cmp=S({type:e,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&(ce(oA,5),ce(aA,5),ce(rA,5)),n&2){let a;Q(a=K())&&(o.monthView=a.first),Q(a=K())&&(o.yearView=a.first),Q(a=K())&&(o.multiYearView=a.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[ye([dA]),Qe,re],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(n,o){if(n&1&&(D(0,Z7,0,0,"ng-template",0),c(1,"div",1),D(2,X7,1,11,"mat-month-view",2)(3,J7,1,6,"mat-year-view",3)(4,e9,1,6,"mat-multi-year-view",3),d()),n&2){let a;p("cdkPortalOutlet",o._calendarHeaderPortal),m(2),De((a=o.currentView)==="month"?2:a==="year"?3:a==="multi-year"?4:-1)}},dependencies:[nn,op,oA,aA,rA],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})(),sA={transformPanel:ci("transformPanel",[xt("void => enter-dropdown",Et("120ms cubic-bezier(0, 0, 0.2, 1)",va([Me({opacity:0,transform:"scale(1, 0.8)"}),Me({opacity:1,transform:"scale(1, 1)"})]))),xt("void => enter-dialog",Et("150ms cubic-bezier(0, 0, 0.2, 1)",va([Me({opacity:0,transform:"scale(0.7)"}),Me({transform:"none",opacity:1})]))),xt("* => void",Et("100ms linear",Me({opacity:0})))]),fadeInCalendar:ci("fadeInCalendar",[Pt("void",Me({opacity:0})),Pt("enter",Me({opacity:1})),xt("void => *",Et("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},h9=0,fA=new O("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}});function p9(i){return()=>i.scrollStrategies.reposition()}var f9={provide:fA,deps:[Ct],useFactory:p9},gA=(()=>{let e=class e{constructor(t,n,o,a,s,l){this._elementRef=t,this._changeDetectorRef=n,this._globalModel=o,this._dateAdapter=a,this._rangeSelectionStrategy=s,this._subscriptions=new ve,this._animationDone=new W,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=l.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){let n=this._model.selection,o=t.value,a=n instanceof uo;if(a&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(o,n,t.event);this._model.updateSelection(s,this)}else o&&(a||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(t){this._model.updateSelection(t.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(t){this._isAnimating=t.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(t,n){this._model=t?this._globalModel.clone():this._globalModel,this._actionsPortal=t,n&&this._changeDetectorRef.detectChanges()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(ue),h(Gd),h(Oi),h(uA,8),h(qd))},e.\u0275cmp=S({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&ce(hw,5),n&2){let a;Q(a=K())&&(o._calendar=a.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(n,o){n&1&&Mc("@transformPanel.start",function(s){return o._handleAnimationEvent(s)})("@transformPanel.done",function(s){return o._handleAnimationEvent(s)}),n&2&&(Ic("@transformPanel",o._animationState),qt(o.color?"mat-"+o.color:""),ne("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[re],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){if(n&1&&(c(0,"div",0)(1,"mat-calendar",1),b("yearSelected",function(s){return o.datepicker._selectYear(s)})("monthSelected",function(s){return o.datepicker._selectMonth(s)})("viewChanged",function(s){return o.datepicker._viewChanged(s)})("_userSelection",function(s){return o._handleUserSelection(s)})("_userDragDrop",function(s){return o._handleUserDragDrop(s)}),d(),D(2,t9,0,0,"ng-template",2),c(3,"button",3),b("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),g(4),d()()),n&2){let a;ne("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),ie("aria-modal",!0)("aria-labelledby",(a=o._dialogLabelId)!==null&&a!==void 0?a:void 0),m(),qt(o.datepicker.panelClass),p("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),p("cdkPortalOutlet",o._actionsPortal),m(),ne("cdk-visually-hidden",!o._closeButtonFocused),p("color",o.color||"primary"),m(),He(o._closeButtonText)}},dependencies:[$1,hw,nn,ke],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[sA.transformPanel,sA.fadeInCalendar]},changeDetection:0});let i=e;return i})(),lA=(()=>{let e=class e{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=_1(t)}get opened(){return this._opened}set opened(t){t?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(t,n,o,a,s,l,u){this._overlay=t,this._viewContainerRef=o,this._dateAdapter=s,this._dir=l,this._model=u,this._inputStateChanges=ve.EMPTY,this._document=k(ae),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this.openedStream=new T,this.closedStream=new T,this._opened=!1,this.id=`mat-datepicker-${h9++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new W,this._injector=k(Pe),this._changeDetectorRef=k(ue),this._dateAdapter,this._scrollStrategy=a,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(t){let n=t.xPosition||t.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof fd&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal,this._actionsPortal=t,this._componentRef?.instance._assignActions(t,!0)}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=ca(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let t=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",n=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:a}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(Rt(1)).subscribe(()=>{let s=this._document.activeElement;t&&(!s||s===this._document.activeElement||a.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}t?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._dialogLabelId=this.datepickerInput.getOverlayLabelId(),t._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let t=this.touchUi,n=new Sn(gA,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new En({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${t?"dialog":"popup"}`}));this._getCloseStream(o).subscribe(a=>{a&&a.preventDefault(),this.close()}),o.keydownEvents().subscribe(a=>{let s=a.keyCode;(s===38||s===40||s===37||s===39||s===33||s===34)&&a.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),t||ni(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",a=this.yPosition==="above"?"bottom":"top",s=a==="top"?"bottom":"top";return t.withPositions([{originX:n,originY:s,overlayX:n,overlayY:a},{originX:n,originY:a,overlayX:n,overlayY:s},{originX:o,originY:s,overlayX:o,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:s}])}_getCloseStream(t){let n=["ctrlKey","shiftKey","metaKey"];return yt(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(qe(o=>o.keyCode===27&&!Ot(o)||this.datepickerInput&&Ot(o,"altKey")&&o.keyCode===38&&n.every(a=>!Ot(o,a)))))}};e.\u0275fac=function(n){return new(n||e)(h(Ct),h(Z),h(wt),h(fA),h(Oi,8),h(Tt,8),h(Gd))},e.\u0275dir=N({type:e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",Y],disabled:[2,"disabled","disabled",Y],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",Y],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",Y]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[he,Qe]});let i=e;return i})(),eg=(()=>{let e=class e extends lA{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275cmp=S({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[ye([dA,{provide:lA,useExisting:e}]),be,re],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0});let i=e;return i})(),$l=class{constructor(e,r){this.target=e,this.targetElement=r,this.value=this.target.value}},g9=(()=>{let e=class e{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){let n=t,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(n=>{if(this._shouldHandleChangeEvent(n)){let o=this._getValueFromModel(n.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new $l(this,this._elementRef.nativeElement)),this.dateChange.emit(new $l(this,this._elementRef.nativeElement))}})}constructor(t,n,o){this._elementRef=t,this._dateAdapter=n,this._dateFormats=o,this.dateChange=new T,this.dateInput=new T,this.stateChanges=new W,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=ve.EMPTY,this._localeSubscription=ve.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),l=this._getMinDate();return!l||!s||this._dateAdapter.compareDate(l,s)<=0?null:{matDatepickerMin:{min:l,actual:s}}},this._maxValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),l=this._getMaxDate();return!l||!s||this._dateAdapter.compareDate(l,s)>=0?null:{matDatepickerMax:{max:l,actual:s}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){_9(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){let n=["ctrlKey","shiftKey","metaKey"];Ot(t,"altKey")&&t.keyCode===40&&n.every(a=>!Ot(t,a))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){let n=this._lastValueValid,o=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(t&&!this.value&&this._cvaOnChange(o),n!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new $l(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new $l(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t!=null?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){let n=this._getDateFilter();return!n||n(t)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Oi,8),h(ga,8))},e.\u0275dir=N({type:e,inputs:{value:"value",disabled:[2,"disabled","disabled",Y]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[he,Qe]});let i=e;return i})();function _9(i,e){let r=Object.keys(i);for(let t of r){let{previousValue:n,currentValue:o}=i[t];if(e.isDateInstance(n)&&e.isDateInstance(o)){if(!e.sameDate(n,o))return!0}else return!0}return!1}var v9={provide:Yi,useExisting:Wt(()=>Gl),multi:!0},b9={provide:oo,useExisting:Wt(()=>Gl),multi:!0},Gl=(()=>{let e=class e extends g9{set matDatepicker(t){t&&(this._datepicker=t,this._ariaOwns.set(t.opened?t.id:null),this._closedSubscription=t.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=t.openedStream.subscribe(()=>{this._ariaOwns.set(t.id)}),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}get max(){return this._max}set max(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){let n=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}constructor(t,n,o,a){super(t,n,o),this._formField=a,this._closedSubscription=ve.EMPTY,this._openedSubscription=ve.EMPTY,this._ariaOwns=lE(null),this._validator=ir.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Oi,8),h(ga,8),h(To,8))},e.\u0275dir=N({type:e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&b("input",function(s){return o._onInput(s.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(s){return o._onKeydown(s)}),n&2&&(Di("disabled",o.disabled),ie("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",o._ariaOwns())("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[ye([v9,b9,{provide:jy,useExisting:e}]),be]});let i=e;return i})(),y9=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let i=e;return i})(),Yd=(()=>{let e=class e{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=t}constructor(t,n,o){this._intl=t,this._changeDetectorRef=n,this._stateChanges=ve.EMPTY;let a=Number(o);this.tabIndex=a||a===0?a:null}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){let t=this.datepicker?this.datepicker.stateChanges:oe(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:oe(),o=this.datepicker?yt(this.datepicker.openedStream,this.datepicker.closedStream):oe();this._stateChanges.unsubscribe(),this._stateChanges=yt(this._intl.changes,t,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(qd),h(ue),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,y9,5),n&2){let s;Q(s=K())&&(o._customIcon=s.first)}},viewQuery:function(n,o){if(n&1&&ce(i9,5),n&2){let a;Q(a=K())&&(o._button=a.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&b("click",function(s){return o._open(s)}),n&2&&(ie("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),ne("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Y],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[he,Qe,re],ngContentSelectors:o9,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(n,o){n&1&&(Ue(n9),c(0,"button",1,0),D(2,r9,2,0,":svg:svg",2),se(3),d()),n&2&&(p("disabled",o.disabled)("disableRipple",o.disableRipple),ie("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),m(2),De(o._customIcon?-1:2))},dependencies:[Gi],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let i=e;return i})();var _A=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[qd,f9],imports:[Si,tr,rn,Ml,Vn,fe,gA,Yd,pA,io]});let i=e;return i})();var w9=["button"],C9=["*"];function x9(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}function D9(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}var bA=new O("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:S9});function S9(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var yA=new O("MatButtonToggleGroup"),E9={provide:Yi,useExisting:Wt(()=>fw),multi:!0},wA=0,tg=class{constructor(e,r){this.source=e,this.value=r}},fw=(()=>{let e=class e{get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(n=>n.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}constructor(t,n,o){this._changeDetector=t,this._dir=o,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${wA++}`,this.valueChange=new T,this.change=new T,this.appearance=n&&n.appearance?n.appearance:"standard",this.hideSingleSelectionIndicator=n?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=n?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Eo(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled)return;let o=t.target.id,a=this._buttonToggles.toArray().findIndex(l=>l.buttonId===o),s=null;switch(t.keyCode){case 32:case 13:s=this._buttonToggles.get(a)||null;break;case 38:s=this._getNextButton(a,-1);break;case 37:s=this._getNextButton(a,this.dir==="ltr"?-1:1);break;case 40:s=this._getNextButton(a,1);break;case 39:s=this._getNextButton(a,this.dir==="ltr"?1:-1);break;default:return}s&&(t.preventDefault(),s._onButtonClick(),s.focus())}_emitChangeEvent(t){let n=new tg(t,this.value);this._rawValue=n.value,this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(t,n,o=!1,a=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?n?this._selectionModel.select(t):this._selectionModel.deselect(t):a=!0,a?Promise.resolve().then(()=>this._updateModelValue(t,o)):this._updateModelValue(t,o)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(n=>t.value!=null&&n===t.value):t.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let t=0;tthis._selectValue(n))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t){let n=this._buttonToggles.find(o=>o.value!=null&&o.value===t);n&&(n.checked=!0,this._selectionModel.select(n),this.multiple||(n.tabIndex=0))}_updateModelValue(t,n){n&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(bA,8),h(Tt,8))},e.\u0275dir=N({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,ig,5),n&2){let s;Q(s=K())&&(o._buttonToggles=s)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._keydown(s)}),n&2&&(ie("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),ne("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",Y],value:"value",multiple:[2,"multiple","multiple",Y],disabled:[2,"disabled","disabled",Y],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",Y]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[ye([E9,{provide:yA,useExisting:e}]),he]});let i=e;return i})(),ig=(()=>{let e=class e{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(t){this._tabIndex=t,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}constructor(t,n,o,a,s,l){this._changeDetectorRef=n,this._elementRef=o,this._focusMonitor=a,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T;let u=Number(s);this.tabIndex=u||u===0?u:null,this.buttonToggleGroup=t,this.appearance=l&&l.appearance?l.appearance:"standard"}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${wA++}`,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let n=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);n&&(n.tabIndex=-1),this.tabIndex=0}this.change.emit(new tg(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};e.\u0275fac=function(n){return new(n||e)(h(yA,8),h(ue),h(G),h(wi),mi("tabindex"),h(bA,8))},e.\u0275cmp=S({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&ce(w9,5),n&2){let a;Q(a=K())&&(o._buttonElement=a.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()}),n&2&&(ie("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),ne("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",Y],appearance:"appearance",checked:[2,"checked","checked",Y],disabled:[2,"disabled","disabled",Y]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[he,re],ngContentSelectors:C9,decls:8,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){if(n&1){let a=A();Ue(),c(0,"button",1,0),b("click",function(){return y(a),w(o._onButtonClick())}),c(2,"span",2),D(3,x9,1,1,"mat-pseudo-checkbox",3)(4,D9,1,1,"mat-pseudo-checkbox",3),se(5),d()(),I(6,"span",4)(7,"span",5)}if(n&2){let a=Ce(1);p("id",o.buttonId)("disabled",o.disabled||null),ie("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(3),De(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),m(),De(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),m(3),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Tn,Yb],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-standard-button-toggle-selected-state-text-color )}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-legacy-button-toggle-selected-state-text-color )}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-legacy-button-toggle-disabled-state-text-color )}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font);font-size:var(--mat-standard-button-toggle-label-text-size);line-height:var(--mat-standard-button-toggle-label-text-line-height);font-weight:var(--mat-standard-button-toggle-label-text-weight);letter-spacing:var(--mat-standard-button-toggle-label-text-tracking)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-standard-button-toggle-disabled-selected-state-text-color )}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape);border-bottom-right-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape);border-bottom-left-radius:var(--mat-standard-button-toggle-shape)}"],encapsulation:2,changeDetection:0});let i=e;return i})(),CA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[fe,Tr,ig,fe]});let i=e;return i})();function M9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit rule"),d())}function T9(i,e){i&1&&(c(0,"uds-translate"),g(1,"New rule"),d())}function k9(i,e){if(i&1&&(c(0,"mat-option",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function A9(i,e){if(i&1&&(c(0,"mat-option",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function O9(i,e){if(i&1&&(c(0,"mat-button-toggle",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function R9(i,e){if(i&1){let r=A();c(0,"div",23)(1,"span",24)(2,"uds-translate"),g(3,"Weekdays"),d()(),c(4,"mat-button-toggle-group",25),H("ngModelChange",function(n){y(r);let o=_();return $(o.wDays,n)||(o.wDays=n),w(n)}),D(5,O9,2,2,"mat-button-toggle",10),d()()}if(i&2){let r=_();m(4),U("ngModel",r.wDays),m(),p("ngForOf",r.weekDays)}}function P9(i,e){if(i&1){let r=A();c(0,"mat-form-field",11)(1,"mat-label")(2,"uds-translate"),g(3,"Repeat every"),d()(),c(4,"input",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.rule.interval,n)||(o.rule.interval=n),w(n)}),d(),c(5,"div",26),g(6),d()()}if(i&2){let r=_();m(4),U("ngModel",r.rule.interval),m(2),P("\xA0",r.frequency(),"")}}var ng={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")],NEVER:["","",django.gettext("Never")]},og={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},xA=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],DA=(i,e=!1)=>{let r=new Array;for(let t=0;t<7;t++)i&1&&r.push(xA[t].substr(0,e?100:3)),i>>=1;return r.length?r.join(", "):django.gettext("(no days)")},SA=i=>{i.frequency==="WEEKDAYS"?i.interval=DA(i.interval):i.interval=i.interval+" "+ng[i.frequency][django.pluralidx(i.interval)],i.duration=i.duration+" "+og[i.duration_unit]},gw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(og).map(s=>({id:s,value:og[s]})),this.freqs=Object.keys(ng).map(s=>({id:s,value:ng[s][2]})),this.weekDays=xA.map((s,l)=>({id:1<{if(this.rule=t,this.startDate=new Date(this.rule.start*1e3),this.startTime=this.startDate.toTimeString().split(":").splice(0,2).join(":"),this.endDate=this.rule.end?new Date(this.rule.end*1e3):null,this.rule.frequency==="WEEKDAYS"){let n=[];for(let o=0;o<7;o++){let a=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let t=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=Kb(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){t=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?t+=" "+DA(this.rule.interval,!0)+" "+django.gettext("of any week"):t+=" "+ +this.rule.interval+" "+this.frequency();let a=new Date(this.rule.start*1e3);t+=", "+django.gettext("from")+" "+ba(n,a),this.rule.end?t+=" "+django.gettext("until")+" "+ba(n,new Date(this.rule.end*1e3)):t+=" "+django.gettext("onwards"),t+=", "+django.gettext("starting at")+" "+a.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?t+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+og[this.rule.duration_unit]:t+=django.gettext("with no duration")}return t.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-calendar-rule"]],decls:73,vars:22,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],[1,"oneThird"],["matInput","","type","time",3,"ngModelChange","ngModel"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf","ngIfAnd"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let a=A();c(0,"h4",2),D(1,M9,2,0,"uds-translate",3)(2,T9,2,0,"uds-translate",3),d(),c(3,"mat-dialog-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Name"),d()(),c(9,"input",5),H("ngModelChange",function(l){return y(a),$(o.rule.name,l)||(o.rule.name=l),w(l)}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),g(13,"Comments"),d()(),c(14,"input",5),H("ngModelChange",function(l){return y(a),$(o.rule.comments,l)||(o.rule.comments=l),w(l)}),d()(),c(15,"h3")(16,"uds-translate"),g(17,"Event"),d()(),c(18,"mat-form-field",6)(19,"mat-label")(20,"uds-translate"),g(21,"Start time"),d()(),c(22,"input",7),H("ngModelChange",function(l){return y(a),$(o.startTime,l)||(o.startTime=l),w(l)}),d()(),c(23,"mat-form-field",6)(24,"mat-label")(25,"uds-translate"),g(26,"Duration"),d()(),c(27,"input",8),H("ngModelChange",function(l){return y(a),$(o.rule.duration,l)||(o.rule.duration=l),w(l)}),d()(),c(28,"mat-form-field",6)(29,"mat-label")(30,"uds-translate"),g(31,"Duration units"),d()(),c(32,"mat-select",9),H("ngModelChange",function(l){return y(a),$(o.rule.duration_unit,l)||(o.rule.duration_unit=l),w(l)}),D(33,k9,2,2,"mat-option",10),d()(),c(34,"h3"),g(35," Repetition "),d(),c(36,"mat-form-field",11)(37,"mat-label")(38,"uds-translate"),g(39," Start date "),d()(),c(40,"input",12),H("ngModelChange",function(l){return y(a),$(o.startDate,l)||(o.startDate=l),w(l)}),d(),I(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),d(),c(44,"mat-form-field",11)(45,"mat-label")(46,"uds-translate"),g(47," Repeat until date "),d()(),c(48,"input",14),H("ngModelChange",function(l){return y(a),$(o.endDate,l)||(o.endDate=l),w(l)}),d(),I(49,"mat-datepicker-toggle",13)(50,"mat-datepicker",null,1),d(),c(52,"div",15)(53,"mat-form-field",11)(54,"mat-label")(55,"uds-translate"),g(56,"Frequency"),d()(),c(57,"mat-select",16),H("ngModelChange",function(l){return y(a),$(o.rule.frequency,l)||(o.rule.frequency=l),w(l)}),b("valueChange",function(){return y(a),w(o.rule.interval=1)}),D(58,A9,2,2,"mat-option",10),d()(),D(59,R9,6,2,"div",17)(60,P9,7,2,"mat-form-field",18),d(),c(61,"h3")(62,"uds-translate"),g(63,"Summary"),d()(),c(64,"div",19),g(65),d()()(),c(66,"mat-dialog-actions")(67,"button",20)(68,"uds-translate"),g(69,"Cancel"),d()(),c(70,"button",21),b("click",function(){return y(a),w(o.save())}),c(71,"uds-translate"),g(72,"Ok"),d()()()}if(n&2){let a=Ce(43),s=Ce(51);m(),p("ngIf",o.rule.id),m(),p("ngIf",!o.rule.id),m(7),U("ngModel",o.rule.name),m(5),U("ngModel",o.rule.comments),m(8),U("ngModel",o.startTime),m(5),U("ngModel",o.rule.duration),m(5),U("ngModel",o.rule.duration_unit),m(),p("ngForOf",o.dunits),m(7),p("matDatepicker",a),U("ngModel",o.startDate),m(),p("for",a),m(7),p("matDatepicker",s),U("ngModel",o.endDate),p("placeholder",o.FOREVER_STRING),m(),p("for",s),m(8),U("ngModel",o.rule.frequency),m(),p("ngForOf",o.freqs),m(),p("ngIf",o.rule.frequency==="WEEKDAYS"),m(),p("ngIf",o.rule.frequency!=="WEEKDAYS")("ngIfAnd",o.rule.frequency!=="NEVER"),m(5),P(" ",o.summary()," "),m(5),p("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[$e,pe,lt,jn,xe,Se,ke,Yt,Xe,et,Je,_e,Ae,ro,ft,vt,it,eg,Gl,Yd,fw,ig,le],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-mdc-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-mdc-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]});let i=e;return i})();var F9=i=>["/pools","calendars",i];function N9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Rules"),d())}function L9(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),D(4,N9,2,0,"ng-template",9),c(5,"div",10)(6,"uds-table",11),b("newAction",function(n){y(r);let o=_();return w(o.onNewRule(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditRule(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteRule(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("rest",r.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","calendars-d-rules"+r.calendar.id)("pageSize",r.api.config.admin.page_size)}}var EA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("calendar");t&&this.rest.calendars.get(t).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(t){gw.launch(this.api,this.calendarRules).subscribe(()=>t.table.overview())}onEditRule(t){gw.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDeleteRule(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))}processElement(t){SA(t)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","pageSize"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,L9,7,7,"div",5),d()),n&2&&(m(2),p("routerLink",Vi(4,F9,o.calendar?o.calendar.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/calendars.png"),Ie),m(),P(" ",o.calendar==null?null:o.calendar.name," "),m(),p("ngIf",o.calendar))},dependencies:[pe,gi,ei,ti,oi,le,Te],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]});let i=e;return i})();var V9='event'+django.gettext("Set time mark")+"",_w=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:V9,type:mt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))}onTimeMark(t){let n=t.table.selection.selected[0];this.api.gui.questionDialog(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).then(o=>{o&&this.rest.accounts.timemark(n.id).then(()=>{this.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})}onDetail(t){this.api.navigation.gotoAccountDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))}processElement(t){t.time_mark=t.time_mark===78793200?django.gettext("No time mark"):zi("SHORT_DATE_FORMAT",t.time_mark)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"customButtonAction","newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("customButtonAction",function(s){return o.onTimeMark(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Te]});let i=e;return i})();var j9=i=>["/pools","accounts",i];function B9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Account usage"),d())}function z9(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),D(4,B9,2,0,"ng-template",9),c(5,"div",10)(6,"uds-table",11),b("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteUsage(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("rest",r.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","account-d-usage"+r.account.id)}}var IA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("account");t&&this.rest.accounts.get(t).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))}processElement(t){t.running=this.api.boolAsHumanString(t.running)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"deleteAction","rest","multiSelect","allowExport","onItem","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,z9,7,6,"div",5),d()),n&2&&(m(2),p("routerLink",Vi(4,j9,o.account?o.account.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/accounts.png"),Ie),m(),P(" ",o.account==null?null:o.account.name," "),m(),p("ngIf",o.account))},dependencies:[pe,gi,ei,ti,oi,le,Te]});let i=e;return i})();function U9(i,e){i&1&&(c(0,"uds-translate"),g(1,"New image for"),d())}function H9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit for"),d())}var vw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.preview="",this.image={id:void 0,data:"",name:""},a.image&&(this.image.id=a.image.id)}static launch(t,n=null){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(t){let n=t.target;if(!n.files||n.files.length===0)return;let o=n.files[0];if(o.size>256*1024){this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));return}if(!["image/jpeg","image/png","image/gif"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"));return}let a=new FileReader;a.onload=s=>{let l=a.result;this.preview=l,this.image.data=l.substr(l.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},a.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(t=>{switch(this.image=t,this.image.data.substr(2)){case"iV":this.preview="data:image/png;base64,"+this.image.data;break;case"/9":this.preview="data:image/jpeg;base64,"+this.image.data;break;default:this.preview="data:image/gif;base64,"+this.image.data}})}background(){let t=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":t,"height.px":n,"background-size":t+"px "+n+"px","background-image":"none"};return this.preview&&(o["background-image"]="url("+this.preview+")"),o}save(){if(!this.image.name||!this.image.data){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"));return}this.rest.gallery.save(this.image).then(()=>{this.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],["type","file",2,"display","none",3,"change"],["matInput","","type","text",3,"click","hidden"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){if(n&1){let a=A();c(0,"h4",1),D(1,U9,2,0,"uds-translate",2)(2,H9,2,0,"uds-translate",2),d(),c(3,"mat-dialog-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Image name"),d()(),c(9,"input",4),H("ngModelChange",function(l){return y(a),$(o.image.name,l)||(o.image.name=l),w(l)}),d()(),c(10,"input",5,0),b("change",function(l){return y(a),w(o.onFileChanged(l))}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Image (click to change)"),d()(),c(16,"input",6),b("click",function(){y(a);let l=Ce(11);return w(l.click())}),d(),c(17,"div",7),b("click",function(){y(a);let l=Ce(11);return w(l.click())}),I(18,"div",8),d()(),c(19,"div",9)(20,"uds-translate"),g(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),g(23," The image will be resized on upload to "),d(),g(24),d()()(),c(25,"mat-dialog-actions")(26,"button",10)(27,"uds-translate"),g(28,"Cancel"),d()(),c(29,"button",11),b("click",function(){return y(a),w(o.save())}),c(30,"uds-translate"),g(31,"Ok"),d()()()}n&2&&(m(),p("ngIf",!o.image.id),m(),p("ngIf",o.image.id),m(7),U("ngModel",o.image.name),m(7),p("hidden",!0),m(2),p("ngStyle",o.background()),m(6),wr(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[pe,eI,lt,xe,Se,ke,Yt,Xe,et,Je,_e,Ae,ft,le],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]});let i=e;return i})();var bw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){vw.launch(this.api).subscribe(()=>t.table.overview())}onEdit(t){vw.launch(this.api,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var MA=nu(Uf());var $9='assessment'+django.gettext("Generate report")+"",TA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n,this.customButtons=[{id:"genreport",html:$9,type:mt.SINGLE_SELECT}]}ngOnInit(){}generateReport(t){return q(this,null,function*(){let n=new Jt;this.api.gui.forms.typedForm(t,django.gettext("Generate report"),!1,[],void 0,t.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let a=yield this.rest.reports.save(o,t.table.selection.selected[0].id),s=a.encoded?window.atob(a.data):a.data,l=s.length,u=new Uint8Array(l);for(let v=0;v{(0,MA.saveAs)(f,a.filename,{autoBom:!1})})})}};e.\u0275fac=function(n){return new(n||e)(h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"customButtonAction","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("customButtonAction",function(s){return o.generateReport(s)}),d()),n&2&&p("rest",o.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var kA=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Notifier"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Notifier"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-notifiers"]],decls:2,vars:4,consts:[["icon","accounts",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();function W9(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;P(" ",r," ")}}function G9(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",18),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),p("type",n.config[t][r].crypt?"password":"text"),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function q9(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"textarea",19),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function Y9(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",20),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function Q9(i,e){if(i&1){let r=A();c(0,"div")(1,"div",21)(2,"mat-slide-toggle",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),g(3),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(2),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),m(),P(" ",r," ")}}function K9(i,e){if(i&1&&(c(0,"mat-option",24),g(1),d()),i&2){let r=e.$implicit;p("value",r),m(),P(" ",r," ")}}function Z9(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"mat-select",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),D(5,K9,2,2,"mat-option",23),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),P(" ",r," "),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),m(),p("ngForOf",n.config[t][r].params)}}function X9(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",25),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function J9(i,e){i&1&&bi(0)}function eq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",26),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function tq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",27),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function iq(i,e){if(i&1&&(ht(0,15),D(1,G9,5,4,"div",16)(2,q9,5,3,"div",16)(3,Y9,5,3,"div",16)(4,Q9,4,3,"div",16)(5,Z9,6,4,"div",16)(6,X9,5,3,"div",16)(7,J9,1,0,"ng-container",16)(8,eq,5,3,"div",16)(9,tq,5,3,"div",17),pt()),i&2){let r=_().$implicit,t=_().$implicit,n=_(2);p("ngSwitch",n.config[t][r].type),m(),p("ngSwitchCase",0),m(),p("ngSwitchCase",1),m(),p("ngSwitchCase",2),m(),p("ngSwitchCase",3),m(),p("ngSwitchCase",4),m(),p("ngSwitchCase",5),m(),p("ngSwitchCase",6),m(),p("ngSwitchCase",7)}}function nq(i,e){if(i&1&&(c(0,"div",13),D(1,iq,10,9,"ng-container",14),d()),i&2){let r=e.$implicit,t=_().$implicit,n=_(2);m(),p("ngIf",n.config[t][r])}}function oq(i,e){if(i&1&&(c(0,"mat-tab"),D(1,W9,1,1,"ng-template",10),c(2,"div",11),D(3,nq,2,1,"div",12),d()()),i&2){let r=e.$implicit,t=_(2);m(3),p("ngForOf",t.configElements(r))}}function rq(i,e){if(i&1){let r=A();c(0,"div",4)(1,"div",5)(2,"mat-tab-group",6),D(3,oq,4,1,"mat-tab",7),d(),c(4,"div",8)(5,"button",9),b("click",function(){y(r);let n=_();return w(n.save())}),c(6,"uds-translate"),g(7,"Save"),d()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(),p("ngForOf",r.sections())}}var AA=["UDS","Security"],OA=["UDS ID"],RA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n}ngOnInit(){this.rest.configuration.overview().then(t=>{this.config=t;for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];a.type===7?a.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':a.type===3&&(a.value=!!["1",1,!0].includes(a.value)),a.original_value=a.value}}})}sections(){let t=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!AA.includes(n)&&t.push(n);return t=t.sort((n,o)=>n.localeCompare(o)),t.unshift.apply(t,AA),t}configElements(t){let n=[],o=this.config[t];if(o)for(let a in o)o.hasOwnProperty(a)&&!(t==="UDS"&&OA.includes(a))&&n.push(a);return n=n.sort((a,s)=>a.localeCompare(s)),t==="UDS"&&n.unshift.apply(n,OA),n}save(){let t={};for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];if(a.original_value!==a.value){a.original_value=a.value,t[n]||(t[n]={});let s=a.value;a.type===3&&(s=["1",1,!0].includes(a.value)?"1":"0"),t[n][o]={value:s}}}}this.rest.configuration.save(t).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-configuration"]],decls:7,vars:2,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"ngModelChange","type","ngModel","matTooltip"],["matInput","",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","number",3,"ngModelChange","ngModel","matTooltip"],[1,"toggle"],[3,"ngModelChange","ngModel","matTooltip"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","password",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","text",3,"ngModelChange","ngModel","matTooltip"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),I(2,"img",2),g(3,"\xA0"),c(4,"uds-translate"),g(5,"UDS Configuration"),d()(),D(6,rq,8,2,"div",3),d()),n&2&&(m(2),p("src",o.api.staticURL("admin/img/icons/configuration.png"),Ie),m(4),p("ngIf",o.config))},dependencies:[$e,pe,il,uh,JE,lt,jn,xe,Se,ke,nr,_e,Ae,ft,vt,it,ei,ti,oi,or,le],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]});let i=e;return i})();var PA=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){return q(this,null,function*(){yield this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var FA=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-servers-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var aq=[{path:"",canActivate:[yT],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:DT},{path:"services/providers",component:By},{path:"services/providers/:provider/detail",component:zy},{path:"services/providers/:provider",component:By},{path:"services/providers/:provider/detail/:service",component:zy},{path:"services/servers",component:Uy},{path:"services/servers/:server/detail",component:jk},{path:"services/servers/:server",component:Uy},{path:"authenticators",component:Hy},{path:"authenticators/:authenticator/detail",component:Gf},{path:"authenticators/:authenticator",component:Hy},{path:"authenticators/:authenticator/detail/groups/:group",component:Gf},{path:"authenticators/:authenticator/detail/users/:user",component:Gf},{path:"mfas",component:$y},{path:"mfas/:mfa",component:$y},{path:"osmanagers",component:Qy},{path:"osmanagers/:osmanager",component:Qy},{path:"connectivity/transports",component:Ky},{path:"connectivity/transports/:transport",component:Ky},{path:"connectivity/networks",component:Zy},{path:"connectivity/networks/:network",component:Zy},{path:"connectivity/tunnels",component:Xy},{path:"connectivity/tunnels/:tunnel",component:Xy},{path:"connectivity/tunnels/:tunnel/detail",component:qk},{path:"pools/service-pools",component:Jy},{path:"pools/service-pools/:pool",component:Jy},{path:"pools/service-pools/:pool/detail",component:Xf},{path:"pools/meta-pools",component:iw},{path:"pools/meta-pools/:metapool",component:iw},{path:"pools/meta-pools/:metapool/detail",component:tA},{path:"pools/pool-groups",component:ow},{path:"pools/pool-groups/:poolgroup",component:ow},{path:"pools/calendars",component:rw},{path:"pools/calendars/:calendar",component:rw},{path:"pools/calendars/:calendar/detail",component:EA},{path:"pools/accounts",component:_w},{path:"pools/accounts/:account",component:_w},{path:"pools/accounts/:account/detail",component:IA},{path:"tools/gallery",component:bw},{path:"tools/gallery/:image",component:bw},{path:"tools/reports",component:TA},{path:"tools/notifiers",component:kA},{path:"tools/tokens/actor",component:PA},{path:"tools/tokens/server",component:FA},{path:"tools/configuration",component:RA}]}],NA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[wb.forRoot(aq,{}),wb]});let i=e;return i})();function LA(i){return new te(3e3,!1)}function sq(){return new te(3100,!1)}function lq(){return new te(3101,!1)}function cq(i){return new te(3001,!1)}function dq(i){return new te(3003,!1)}function uq(i){return new te(3004,!1)}function mq(i,e){return new te(3005,!1)}function hq(){return new te(3006,!1)}function pq(){return new te(3007,!1)}function fq(i,e){return new te(3008,!1)}function gq(i){return new te(3002,!1)}function _q(i,e,r,t,n){return new te(3010,!1)}function vq(){return new te(3011,!1)}function bq(){return new te(3012,!1)}function yq(){return new te(3200,!1)}function wq(){return new te(3202,!1)}function Cq(){return new te(3013,!1)}function xq(i){return new te(3014,!1)}function Dq(i){return new te(3015,!1)}function Sq(i){return new te(3016,!1)}function Eq(i,e){return new te(3404,!1)}function Iq(i){return new te(3502,!1)}function Mq(i){return new te(3503,!1)}function Tq(){return new te(3300,!1)}function kq(i){return new te(3504,!1)}function Aq(i){return new te(3301,!1)}function Oq(i,e){return new te(3302,!1)}function Rq(i){return new te(3303,!1)}function Pq(i,e){return new te(3400,!1)}function Fq(i){return new te(3401,!1)}function Nq(i){return new te(3402,!1)}function Lq(i,e){return new te(3505,!1)}function Ta(i){switch(i.length){case 0:return new _a;case 1:return i[0];default:return new Id(i)}}function ZA(i,e,r=new Map,t=new Map){let n=[],o=[],a=-1,s=null;if(e.forEach(l=>{let u=l.get("offset"),f=u==a,v=f&&s||new Map;l.forEach((C,x)=>{let E=x,R=C;if(x!=="offset")switch(E=i.normalizePropertyName(E,n),R){case hp:R=r.get(x);break;case Jo:R=t.get(x);break;default:R=i.normalizeStyleValue(x,E,R,n);break}v.set(E,R)}),f||o.push(v),s=v,a=u}),n.length)throw Iq(n);return o}function Uw(i,e,r,t){switch(e){case"start":i.onStart(()=>t(r&&yw(r,"start",i)));break;case"done":i.onDone(()=>t(r&&yw(r,"done",i)));break;case"destroy":i.onDestroy(()=>t(r&&yw(r,"destroy",i)));break}}function yw(i,e,r){let t=r.totalTime,n=!!r.disabled,o=Hw(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,t??i.totalTime,n),a=i._data;return a!=null&&(o._data=a),o}function Hw(i,e,r,t,n="",o=0,a){return{element:i,triggerName:e,fromState:r,toState:t,phaseName:n,totalTime:o,disabled:!!a}}function Hn(i,e,r){let t=i.get(e);return t||i.set(e,t=r),t}function VA(i){let e=i.indexOf(":"),r=i.substring(1,e),t=i.slice(e+1);return[r,t]}var Vq=typeof document>"u"?null:document.documentElement;function $w(i){let e=i.parentNode||i.host||null;return e===Vq?null:e}function jq(i){return i.substring(1,6)=="ebkit"}var _s=null,jA=!1;function Bq(i){_s||(_s=zq()||{},jA=_s.style?"WebkitAppearance"in _s.style:!1);let e=!0;return _s.style&&!jq(i)&&(e=i in _s.style,!e&&jA&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in _s.style)),e}function zq(){return typeof document<"u"?document.body:null}function XA(i,e){for(;e;){if(e===i)return!0;e=$w(e)}return!1}function JA(i,e,r){if(r)return Array.from(i.querySelectorAll(e));let t=i.querySelector(e);return t?[t]:[]}var Ww=(()=>{let e=class e{validateStyleProperty(t){return Bq(t)}containsElement(t,n){return XA(t,n)}getParentElement(t){return $w(t)}query(t,n,o){return JA(t,n,o)}computeStyle(t,n,o){return o||""}animate(t,n,o,a,s,l=[],u){return new _a(o,a)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Qw=class Qw{};Qw.NOOP=new Ww;var ys=Qw,ws=class{};var Uq=1e3,eO="{{",Hq="}}",tO="ng-enter",Ew="ng-leave",rg="ng-trigger",dg=".ng-trigger",BA="ng-animating",Iw=".ng-animating";function Pr(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Mw(parseFloat(e[1]),e[2])}function Mw(i,e){switch(e){case"s":return i*Uq;default:return i}}function ug(i,e,r){return i.hasOwnProperty("duration")?i:$q(i,e,r)}function $q(i,e,r){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,o=0,a="";if(typeof i=="string"){let s=i.match(t);if(s===null)return e.push(LA(i)),{duration:0,delay:0,easing:""};n=Mw(parseFloat(s[1]),s[2]);let l=s[3];l!=null&&(o=Mw(parseFloat(l),s[4]));let u=s[5];u&&(a=u)}else n=i;if(!r){let s=!1,l=e.length;n<0&&(e.push(sq()),s=!0),o<0&&(e.push(lq()),s=!0),s&&e.splice(l,0,LA(i))}return{duration:n,delay:o,easing:a}}function Wq(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function rr(i,e,r){e.forEach((t,n)=>{let o=Gw(n);r&&!r.has(n)&&r.set(n,i.style[o]),i.style[o]=t})}function bs(i,e){e.forEach((r,t)=>{let n=Gw(t);i.style[n]=""})}function Qd(i){return Array.isArray(i)?i.length==1?i[0]:rM(i):i}function Gq(i,e,r){let t=e.params||{},n=iO(i);n.length&&n.forEach(o=>{t.hasOwnProperty(o)||r.push(cq(o))})}var Tw=new RegExp(`${eO}\\s*(.+?)\\s*${Hq}`,"g");function iO(i){let e=[];if(typeof i=="string"){let r;for(;r=Tw.exec(i);)e.push(r[1]);Tw.lastIndex=0}return e}function Zd(i,e,r){let t=`${i}`,n=t.replace(Tw,(o,a)=>{let s=e[a];return s==null&&(r.push(dq(a)),s=""),s.toString()});return n==t?i:n}var qq=/-+([a-z0-9])/g;function Gw(i){return i.replace(qq,(...e)=>e[1].toUpperCase())}function Yq(i,e){return i===0||e===0}function Qq(i,e,r){if(r.size&&e.length){let t=e[0],n=[];if(r.forEach((o,a)=>{t.has(a)||n.push(a),t.set(a,o)}),n.length)for(let o=1;oa.set(s,qw(i,s)))}}return e}function Un(i,e,r){switch(e.type){case nt.Trigger:return i.visitTrigger(e,r);case nt.State:return i.visitState(e,r);case nt.Transition:return i.visitTransition(e,r);case nt.Sequence:return i.visitSequence(e,r);case nt.Group:return i.visitGroup(e,r);case nt.Animate:return i.visitAnimate(e,r);case nt.Keyframes:return i.visitKeyframes(e,r);case nt.Style:return i.visitStyle(e,r);case nt.Reference:return i.visitReference(e,r);case nt.AnimateChild:return i.visitAnimateChild(e,r);case nt.AnimateRef:return i.visitAnimateRef(e,r);case nt.Query:return i.visitQuery(e,r);case nt.Stagger:return i.visitStagger(e,r);default:throw uq(e.type)}}function qw(i,e){return window.getComputedStyle(i)[e]}var Kq=new Set(["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"]),mg=class extends ws{normalizePropertyName(e,r){return Gw(e)}normalizeStyleValue(e,r,t,n){let o="",a=t.toString().trim();if(Kq.has(r)&&t!==0&&t!=="0")if(typeof t=="number")o="px";else{let s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&n.push(mq(e,t))}return a+o}};var hg="*";function Zq(i,e){let r=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(t=>Xq(t,r,e)):r.push(i),r}function Xq(i,e,r){if(i[0]==":"){let l=Jq(i,r);if(typeof l=="function"){e.push(l);return}i=l}let t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return r.push(Dq(i)),e;let n=t[1],o=t[2],a=t[3];e.push(zA(n,a));let s=n==hg&&a==hg;o[0]=="<"&&!s&&e.push(zA(a,n))}function Jq(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,t)=>parseFloat(t)>parseFloat(r);case":decrement":return(r,t)=>parseFloat(t) *"}}var ag=new Set(["true","1"]),sg=new Set(["false","0"]);function zA(i,e){let r=ag.has(i)||sg.has(i),t=ag.has(e)||sg.has(e);return(n,o)=>{let a=i==hg||i==n,s=e==hg||e==o;return!a&&r&&typeof n=="boolean"&&(a=n?ag.has(i):sg.has(i)),!s&&t&&typeof o=="boolean"&&(s=o?ag.has(e):sg.has(e)),a&&s}}var nO=":self",eY=new RegExp(`s*${nO}s*,?`,"g");function oO(i,e,r,t){return new kw(i).build(e,r,t)}var UA="",kw=class{constructor(e){this._driver=e}build(e,r,t){let n=new Aw(r);return this._resetContextStyleTimingState(n),Un(this,Qd(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=UA,e.collectedStyles=new Map,e.collectedStyles.set(UA,new Map),e.currentTime=0}visitTrigger(e,r){let t=r.queryCount=0,n=r.depCount=0,o=[],a=[];return e.name.charAt(0)=="@"&&r.errors.push(hq()),e.definitions.forEach(s=>{if(this._resetContextStyleTimingState(r),s.type==nt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,o.push(this.visitState(l,r))}),l.name=u}else if(s.type==nt.Transition){let l=this.visitTransition(s,r);t+=l.queryCount,n+=l.depCount,a.push(l)}else r.errors.push(pq())}),{type:nt.Trigger,name:e.name,states:o,transitions:a,queryCount:t,depCount:n,options:null}}visitState(e,r){let t=this.visitStyle(e.styles,r),n=e.options&&e.options.params||null;if(t.containsDynamicStyles){let o=new Set,a=n||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{iO(l).forEach(u=>{a.hasOwnProperty(u)||o.add(u)})})}),o.size&&r.errors.push(fq(e.name,[...o.values()]))}return{type:nt.State,name:e.name,style:t,options:n?{params:n}:null}}visitTransition(e,r){r.queryCount=0,r.depCount=0;let t=Un(this,Qd(e.animation),r),n=Zq(e.expr,r.errors);return{type:nt.Transition,matchers:n,animation:t,queryCount:r.queryCount,depCount:r.depCount,options:vs(e.options)}}visitSequence(e,r){return{type:nt.Sequence,steps:e.steps.map(t=>Un(this,t,r)),options:vs(e.options)}}visitGroup(e,r){let t=r.currentTime,n=0,o=e.steps.map(a=>{r.currentTime=t;let s=Un(this,a,r);return n=Math.max(n,r.currentTime),s});return r.currentTime=n,{type:nt.Group,steps:o,options:vs(e.options)}}visitAnimate(e,r){let t=oY(e.timings,r.errors);r.currentAnimateTimings=t;let n,o=e.styles?e.styles:Me({});if(o.type==nt.Keyframes)n=this.visitKeyframes(o,r);else{let a=e.styles,s=!1;if(!a){s=!0;let u={};t.easing&&(u.easing=t.easing),a=Me(u)}r.currentTime+=t.duration+t.delay;let l=this.visitStyle(a,r);l.isEmptyStep=s,n=l}return r.currentAnimateTimings=null,{type:nt.Animate,timings:t,style:n,options:null}}visitStyle(e,r){let t=this._makeStyleAst(e,r);return this._validateStyleAst(t,r),t}_makeStyleAst(e,r){let t=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let s of n)typeof s=="string"?s===Jo?t.push(s):r.errors.push(gq(s)):t.push(new Map(Object.entries(s)));let o=!1,a=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o)){for(let l of s.values())if(l.toString().indexOf(eO)>=0){o=!0;break}}}),{type:nt.Style,styles:t,easing:a,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,r){let t=r.currentAnimateTimings,n=r.currentTime,o=r.currentTime;t&&o>0&&(o-=t.duration+t.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=r.collectedStyles.get(r.currentQuerySelector),f=u.get(l),v=!0;f&&(o!=n&&o>=f.startTime&&n<=f.endTime&&(r.errors.push(_q(l,f.startTime,f.endTime,o,n)),v=!1),o=f.startTime),v&&u.set(l,{startTime:o,endTime:n}),r.options&&Gq(s,r.options,r.errors)})})}visitKeyframes(e,r){let t={type:nt.Keyframes,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(vq()),t;let n=1,o=0,a=[],s=!1,l=!1,u=0,f=e.steps.map(F=>{let ge=this._makeStyleAst(F,r),ot=ge.offset!=null?ge.offset:nY(ge.styles),rt=0;return ot!=null&&(o++,rt=ge.offset=ot),l=l||rt<0||rt>1,s=s||rt0&&o{let ot=C>0?ge==x?1:C*ge:a[ge],rt=ot*j;r.currentTime=E+R.delay+rt,R.duration=rt,this._validateStyleAst(F,r),F.offset=ot,t.styles.push(F)}),t}visitReference(e,r){return{type:nt.Reference,animation:Un(this,Qd(e.animation),r),options:vs(e.options)}}visitAnimateChild(e,r){return r.depCount++,{type:nt.AnimateChild,options:vs(e.options)}}visitAnimateRef(e,r){return{type:nt.AnimateRef,animation:this.visitReference(e.animation,r),options:vs(e.options)}}visitQuery(e,r){let t=r.currentQuerySelector,n=e.options||{};r.queryCount++,r.currentQuery=e;let[o,a]=tY(e.selector);r.currentQuerySelector=t.length?t+" "+o:o,Hn(r.collectedStyles,r.currentQuerySelector,new Map);let s=Un(this,Qd(e.animation),r);return r.currentQuery=null,r.currentQuerySelector=t,{type:nt.Query,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:vs(e.options)}}visitStagger(e,r){r.currentQuery||r.errors.push(Cq());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ug(e.timings,r.errors,!0);return{type:nt.Stagger,animation:Un(this,Qd(e.animation),r),timings:t,options:null}}};function tY(i){let e=!!i.split(/\s*,\s*/).find(r=>r==nO);return e&&(i=i.replace(eY,"")),i=i.replace(/@\*/g,dg).replace(/@\w+/g,r=>dg+"-"+r.slice(1)).replace(/:animating/g,Iw),[i,e]}function iY(i){return i?B({},i):null}var Aw=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function nY(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(r=>{if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let r=i;e=parseFloat(r.get("offset")),r.delete("offset")}return e}function oY(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let o=ug(i,e).duration;return ww(o,0,"")}let r=i;if(r.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=ww(0,0,"");return o.dynamic=!0,o.strValue=r,o}let n=ug(r,e);return ww(n.duration,n.delay,n.easing)}function vs(i){return i?(i=B({},i),i.params&&(i.params=iY(i.params))):i={},i}function ww(i,e,r){return{duration:i,delay:e,easing:r}}function Yw(i,e,r,t,n,o,a=null,s=!1){return{type:1,element:i,keyframes:e,preStyleProps:r,postStyleProps:t,duration:n,delay:o,totalTime:n+o,easing:a,subTimeline:s}}var Xd=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,r){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...r)}has(e){return this._map.has(e)}clear(){this._map.clear()}},rY=1,aY=":enter",sY=new RegExp(aY,"g"),lY=":leave",cY=new RegExp(lY,"g");function rO(i,e,r,t,n,o=new Map,a=new Map,s,l,u=[]){return new Ow().buildKeyframes(i,e,r,t,n,o,a,s,l,u)}var Ow=class{buildKeyframes(e,r,t,n,o,a,s,l,u,f=[]){u=u||new Xd;let v=new Rw(e,r,u,n,o,f,[]);v.options=l;let C=l.delay?Pr(l.delay):0;v.currentTimeline.delayNextStep(C),v.currentTimeline.setStyles([a],null,v.errors,l),Un(this,t,v);let x=v.timelines.filter(E=>E.containsAnimation());if(x.length&&s.size){let E;for(let R=x.length-1;R>=0;R--){let j=x[R];if(j.element===r){E=j;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([s],null,v.errors,l)}return x.length?x.map(E=>E.buildKeyframes()):[Yw(r,[],[],[],0,C,"",!1)]}visitTrigger(e,r){}visitState(e,r){}visitTransition(e,r){}visitAnimateChild(e,r){let t=r.subInstructions.get(r.element);if(t){let n=r.createSubContext(e.options),o=r.currentTimeline.currentTime,a=this._visitSubInstructions(t,n,n.options);o!=a&&r.transformIntoNewTimeline(a)}r.previousNode=e}visitAnimateRef(e,r){let t=r.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],r,t),this.visitReference(e.animation,t),r.transformIntoNewTimeline(t.currentTimeline.currentTime),r.previousNode=e}_applyAnimationRefDelays(e,r,t){for(let n of e){let o=n?.delay;if(o){let a=typeof o=="number"?o:Pr(Zd(o,n?.params??{},r.errors));t.delayNextStep(a)}}}_visitSubInstructions(e,r,t){let o=r.currentTimeline.currentTime,a=t.duration!=null?Pr(t.duration):null,s=t.delay!=null?Pr(t.delay):null;return a!==0&&e.forEach(l=>{let u=r.appendInstructionToTimeline(l,a,s);o=Math.max(o,u.duration+u.delay)}),o}visitReference(e,r){r.updateOptions(e.options,!0),Un(this,e.animation,r),r.previousNode=e}visitSequence(e,r){let t=r.subContextCount,n=r,o=e.options;if(o&&(o.params||o.delay)&&(n=r.createSubContext(o),n.transformIntoNewTimeline(),o.delay!=null)){n.previousNode.type==nt.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=pg);let a=Pr(o.delay);n.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>Un(this,a,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>t&&n.transformIntoNewTimeline()),r.previousNode=e}visitGroup(e,r){let t=[],n=r.currentTimeline.currentTime,o=e.options&&e.options.delay?Pr(e.options.delay):0;e.steps.forEach(a=>{let s=r.createSubContext(e.options);o&&s.delayNextStep(o),Un(this,a,s),n=Math.max(n,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(a=>r.currentTimeline.mergeTimelineCollectedStyles(a)),r.transformIntoNewTimeline(n),r.previousNode=e}_visitTiming(e,r){if(e.dynamic){let t=e.strValue,n=r.params?Zd(t,r.params,r.errors):t;return ug(n,r.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,r){let t=r.currentAnimateTimings=this._visitTiming(e.timings,r),n=r.currentTimeline;t.delay&&(r.incrementTime(t.delay),n.snapshotCurrentStyles());let o=e.style;o.type==nt.Keyframes?this.visitKeyframes(o,r):(r.incrementTime(t.duration),this.visitStyle(o,r),n.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=e}visitStyle(e,r){let t=r.currentTimeline,n=r.currentAnimateTimings;!n&&t.hasCurrentStyleProperties()&&t.forwardFrame();let o=n&&n.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(o):t.setStyles(e.styles,o,r.errors,r.options),r.previousNode=e}visitKeyframes(e,r){let t=r.currentAnimateTimings,n=r.currentTimeline.duration,o=t.duration,s=r.createSubContext().currentTimeline;s.easing=t.easing,e.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*o),s.setStyles(l.styles,l.easing,r.errors,r.options),s.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(s),r.transformIntoNewTimeline(n+o),r.previousNode=e}visitQuery(e,r){let t=r.currentTimeline.currentTime,n=e.options||{},o=n.delay?Pr(n.delay):0;o&&(r.previousNode.type===nt.Style||t==0&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=pg);let a=t,s=r.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,r.errors);r.currentQueryTotal=s.length;let l=null;s.forEach((u,f)=>{r.currentQueryIndex=f;let v=r.createSubContext(e.options,u);o&&v.delayNextStep(o),u===r.element&&(l=v.currentTimeline),Un(this,e.animation,v),v.currentTimeline.applyStylesToKeyframe();let C=v.currentTimeline.currentTime;a=Math.max(a,C)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(a),l&&(r.currentTimeline.mergeTimelineCollectedStyles(l),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=e}visitStagger(e,r){let t=r.parentContext,n=r.currentTimeline,o=e.timings,a=Math.abs(o.duration),s=a*(r.currentQueryTotal-1),l=a*r.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=t.currentStaggerTime;break}let f=r.currentTimeline;l&&f.delayNextStep(l);let v=f.currentTime;Un(this,e.animation,r),r.previousNode=e,t.currentStaggerTime=n.currentTime-v+(n.startTime-t.currentTimeline.startTime)}},pg={},Rw=class i{constructor(e,r,t,n,o,a,s,l){this._driver=e,this.element=r,this.subInstructions=t,this._enterClassName=n,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new fg(this._driver,r,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,r){if(!e)return;let t=e,n=this.options;t.duration!=null&&(n.duration=Pr(t.duration)),t.delay!=null&&(n.delay=Pr(t.delay));let o=t.params;if(o){let a=n.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!r||!a.hasOwnProperty(s))&&(a[s]=Zd(o[s],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let r=this.options.params;if(r){let t=e.params={};Object.keys(r).forEach(n=>{t[n]=r[n]})}}return e}createSubContext(e=null,r,t){let n=r||this.element,o=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,t||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=pg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,r,t){let n={duration:r??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},o=new Pw(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(o),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,r,t,n,o,a){let s=[];if(n&&s.push(this.element),e.length>0){e=e.replace(sY,"."+this._enterClassName),e=e.replace(cY,"."+this._leaveClassName);let l=t!=1,u=this._driver.query(this.element,e,l);t!==0&&(u=t<0?u.slice(u.length+t,u.length):u.slice(0,t)),s.push(...u)}return!o&&s.length==0&&a.push(xq(r)),s}},fg=class i{constructor(e,r,t,n){this._driver=e,this.element=r,this.startTime=t,this._elementTimelineStylesLookup=n,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let r=this._keyframes.size===1&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+e),r&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,r){return this.applyStylesToKeyframe(),new i(this._driver,e,r||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=rY,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,r){this._localTimelineStyles.set(e,r),this._globalTimelineStyles.set(e,r),this._styleSummary.set(e,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[r,t]of this._globalTimelineStyles)this._backFill.set(r,t||Jo),this._currentKeyframe.set(r,Jo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,r,t,n){r&&this._previousKeyframe.set("easing",r);let o=n&&n.params||{},a=dY(e,this._globalTimelineStyles);for(let[s,l]of a){let u=Zd(l,o,t);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Jo),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,r)=>{this._currentKeyframe.set(r,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,e)}))}snapshotCurrentStyles(){for(let[e,r]of this._localTimelineStyles)this._pendingStyles.set(e,r),this._updateStyle(e,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let r in this._currentKeyframe)e.push(r);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((r,t)=>{let n=this._styleSummary.get(t);(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,r=new Set,t=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((f,v)=>{f===hp?e.add(v):f===Jo&&r.add(v)}),t||u.set("offset",l/this.duration),n.push(u)});let o=[...e.values()],a=[...r.values()];if(t){let s=n[0],l=new Map(s);s.set("offset",0),l.set("offset",1),n=[s,l]}return Yw(this.element,n,o,a,this.duration,this.startTime,this.easing,!1)}},Pw=class extends fg{constructor(e,r,t,n,o,a,s=!1){super(e,r,a.delay),this.keyframes=t,this.preStyleProps=n,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:r,duration:t,easing:n}=this.timings;if(this._stretchStartingKeyframe&&r){let o=[],a=t+r,s=r/a,l=new Map(e[0]);l.set("offset",0),o.push(l);let u=new Map(e[0]);u.set("offset",HA(s)),o.push(u);let f=e.length-1;for(let v=1;v<=f;v++){let C=new Map(e[v]),x=C.get("offset"),E=r+x*t;C.set("offset",HA(E/a)),o.push(C)}t=a,r=0,n="",e=o}return Yw(this.element,e,this.preStyleProps,this.postStyleProps,t,r,n,!0)}};function HA(i,e=3){let r=Math.pow(10,e-1);return Math.round(i*r)/r}function dY(i,e){let r=new Map,t;return i.forEach(n=>{if(n==="*"){t??=e.keys();for(let o of t)r.set(o,Jo)}else for(let[o,a]of n)r.set(o,a)}),r}function $A(i,e,r,t,n,o,a,s,l,u,f,v,C){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:r,fromStyles:o,toState:t,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:f,totalTime:v,errors:C}}var Cw={},gg=class{constructor(e,r,t){this._triggerName=e,this.ast=r,this._stateStyles=t}match(e,r,t,n){return uY(this.ast.matchers,e,r,t,n)}buildStyles(e,r,t){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(r,t):new Map}build(e,r,t,n,o,a,s,l,u,f){let v=[],C=this.ast.options&&this.ast.options.params||Cw,x=s&&s.params||Cw,E=this.buildStyles(t,x,v),R=l&&l.params||Cw,j=this.buildStyles(n,R,v),F=new Set,ge=new Map,ot=new Map,rt=n==="void",Mi={params:aO(R,C),delay:this.ast.options?.delay},Nt=f?[]:rO(e,r,this.ast.animation,o,a,E,j,Mi,u,v),Ht=0;return Nt.forEach(_i=>{Ht=Math.max(_i.duration+_i.delay,Ht)}),v.length?$A(r,this._triggerName,t,n,rt,E,j,[],[],ge,ot,Ht,v):(Nt.forEach(_i=>{let ar=_i.element,Fr=Hn(ge,ar,new Set);_i.preStyleProps.forEach(ka=>Fr.add(ka));let iC=Hn(ot,ar,new Set);_i.postStyleProps.forEach(ka=>iC.add(ka)),ar!==r&&F.add(ar)}),$A(r,this._triggerName,t,n,rt,E,j,Nt,[...F.values()],ge,ot,Ht))}};function uY(i,e,r,t,n){return i.some(o=>o(e,r,t,n))}function aO(i,e){let r=B({},e);return Object.entries(i).forEach(([t,n])=>{n!=null&&(r[t]=n)}),r}var Fw=class{constructor(e,r,t){this.styles=e,this.defaultParams=r,this.normalizer=t}buildStyles(e,r){let t=new Map,n=aO(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=Zd(a,n,r));let l=this.normalizer.normalizePropertyName(s,r);a=this.normalizer.normalizeStyleValue(s,l,a,r),t.set(s,a)})}),t}};function mY(i,e,r){return new Nw(i,e,r)}var Nw=class{constructor(e,r,t){this.name=e,this.ast=r,this._normalizer=t,this.transitionFactories=[],this.states=new Map,r.states.forEach(n=>{let o=n.options&&n.options.params||{};this.states.set(n.name,new Fw(n.style,o,t))}),WA(this.states,"true","1"),WA(this.states,"false","0"),r.transitions.forEach(n=>{this.transitionFactories.push(new gg(e,n,this.states))}),this.fallbackTransition=hY(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,r,t,n){return this.transitionFactories.find(a=>a.match(e,r,t,n))||null}matchStyles(e,r,t){return this.fallbackTransition.buildStyles(e,r,t)}};function hY(i,e,r){let t=[(a,s)=>!0],n={type:nt.Sequence,steps:[],options:null},o={type:nt.Transition,animation:n,matchers:t,options:null,queryCount:0,depCount:0};return new gg(i,o,e)}function WA(i,e,r){i.has(e)?i.has(r)||i.set(r,i.get(e)):i.has(r)&&i.set(e,i.get(r))}var pY=new Xd,Lw=class{constructor(e,r,t){this.bodyNode=e,this._driver=r,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,r){let t=[],n=[],o=oO(this._driver,r,t,n);if(t.length)throw Mq(t);n.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,r,t){let n=e.element,o=ZA(this._normalizer,e.keyframes,r,t);return this._driver.animate(n,o,e.duration,e.delay,e.easing,[],!0)}create(e,r,t={}){let n=[],o=this._animations.get(e),a,s=new Map;if(o?(a=rO(this._driver,r,o,tO,Ew,new Map,new Map,t,pY,n),a.forEach(f=>{let v=Hn(s,f.element,new Map);f.postStyleProps.forEach(C=>v.set(C,null))})):(n.push(Tq()),a=[]),n.length)throw kq(n);s.forEach((f,v)=>{f.forEach((C,x)=>{f.set(x,this._driver.computeStyle(v,x,Jo))})});let l=a.map(f=>{let v=s.get(f.element);return this._buildPlayer(f,new Map,v)}),u=Ta(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let r=this._getPlayer(e);r.destroy(),this._playersById.delete(e);let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1)}_getPlayer(e){let r=this._playersById.get(e);if(!r)throw Aq(e);return r}listen(e,r,t,n){let o=Hw(r,"","","");return Uw(this._getPlayer(e),t,o,n),()=>{}}command(e,r,t,n){if(t=="register"){this.register(e,n[0]);return}if(t=="create"){let a=n[0]||{};this.create(e,r,a);return}let o=this._getPlayer(e);switch(t){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},GA="ng-animate-queued",fY=".ng-animate-queued",xw="ng-animate-disabled",gY=".ng-animate-disabled",_Y="ng-star-inserted",vY=".ng-star-inserted",bY=[],sO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},yY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ao="__ng_removed",Jd=class{get params(){return this.options.params}constructor(e,r=""){this.namespaceId=r;let t=e&&e.hasOwnProperty("value"),n=t?e.value:e;if(this.value=CY(n),t){let o=e,{value:a}=o,s=Dg(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let r=e.params;if(r){let t=this.options.params;Object.keys(r).forEach(n=>{t[n]==null&&(t[n]=r[n])})}}},Kd="void",Dw=new Jd(Kd),Vw=class{constructor(e,r,t){this.id=e,this.hostElement=r,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,mo(r,this._hostClassName)}listen(e,r,t,n){if(!this._triggers.has(r))throw Oq(t,r);if(t==null||t.length==0)throw Rq(r);if(!xY(t))throw Pq(t,r);let o=Hn(this._elementListeners,e,[]),a={name:r,phase:t,callback:n};o.push(a);let s=Hn(this._engine.statesByElement,e,new Map);return s.has(r)||(mo(e,rg),mo(e,rg+"-"+r),s.set(r,Dw)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(r)||s.delete(r)})}}register(e,r){return this._triggers.has(e)?!1:(this._triggers.set(e,r),!0)}_getTrigger(e){let r=this._triggers.get(e);if(!r)throw Fq(e);return r}trigger(e,r,t,n=!0){let o=this._getTrigger(r),a=new eu(this.id,r,e),s=this._engine.statesByElement.get(e);s||(mo(e,rg),mo(e,rg+"-"+r),this._engine.statesByElement.set(e,s=new Map));let l=s.get(r),u=new Jd(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(r,u),l||(l=Dw),!(u.value===Kd)&&l.value===u.value){if(!EY(l.params,u.params)){let R=[],j=o.matchStyles(l.value,l.params,R),F=o.matchStyles(u.value,u.params,R);R.length?this._engine.reportError(R):this._engine.afterFlush(()=>{bs(e,j),rr(e,F)})}return}let C=Hn(this._engine.playersByElement,e,[]);C.forEach(R=>{R.namespaceId==this.id&&R.triggerName==r&&R.queued&&R.destroy()});let x=o.matchTransition(l.value,u.value,e,u.params),E=!1;if(!x){if(!n)return;x=o.fallbackTransition,E=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:x,fromState:l,toState:u,player:a,isFallbackTransition:E}),E||(mo(e,GA),a.onStart(()=>{ql(e,GA)})),a.onDone(()=>{let R=this.players.indexOf(a);R>=0&&this.players.splice(R,1);let j=this._engine.playersByElement.get(e);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),C.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(r=>r.delete(e)),this._elementListeners.forEach((r,t)=>{this._elementListeners.set(t,r.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let r=this._engine.playersByElement.get(e);r&&(r.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,r){let t=this._engine.driver.query(e,dg,!0);t.forEach(n=>{if(n[Ao])return;let o=this._engine.fetchNamespacesByElement(n);o.size?o.forEach(a=>a.triggerLeaveAnimation(n,r,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,r,t,n){let o=this._engine.statesByElement.get(e),a=new Map;if(o){let s=[];if(o.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let f=this.trigger(e,u,Kd,n);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,r,a),t&&Ta(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let r=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(r&&t){let n=new Set;r.forEach(o=>{let a=o.name;if(n.has(a))return;n.add(a);let l=this._triggers.get(a).fallbackTransition,u=t.get(a)||Dw,f=new Jd(Kd),v=new eu(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:f,player:v,isFallbackTransition:!0})})}}removeNode(e,r){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,r),this.triggerLeaveAnimation(e,r,!0))return;let n=!1;if(t.totalAnimations){let o=t.players.length?t.playersByQueriedElement.get(e):[];if(o&&o.length)n=!0;else{let a=e;for(;a=a.parentNode;)if(t.statesByElement.get(a)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)t.markElementAsRemoved(this.id,e,!1,r);else{let o=e[Ao];(!o||o===sO)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,r))}}insertNode(e,r){mo(e,this._hostClassName)}drainQueuedTransitions(e){let r=[];return this._queue.forEach(t=>{let n=t.player;if(n.destroyed)return;let o=t.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==t.triggerName){let l=Hw(o,t.triggerName,t.fromState.value,t.toState.value);l._data=e,Uw(t.player,s.phase,l,s.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):r.push(t)}),this._queue=[],r.sort((t,n)=>{let o=t.transition.ast.depCount,a=n.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(t.element,n.element)?1:-1})}destroy(e){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},jw=class{_onRemovalComplete(e,r){this.onRemovalComplete(e,r)}constructor(e,r,t){this.bodyNode=e,this.driver=r,this._normalizer=t,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=(n,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(r=>{r.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,r){let t=new Vw(e,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(t,r):(this.newHostElements.set(r,t),this.collectEnterElement(r)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,r){let t=this._namespaceList,n=this.namespacesByHostElement;if(t.length-1>=0){let a=!1,s=this.driver.getParentElement(r);for(;s;){let l=n.get(s);if(l){let u=t.indexOf(l);t.splice(u+1,0,e),a=!0;break}s=this.driver.getParentElement(s)}a||t.unshift(e)}else t.push(e);return n.set(r,e),e}register(e,r){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,r)),t}registerTrigger(e,r,t){let n=this._namespaceLookup[e];n&&n.register(r,t)&&this.totalAnimations++}destroy(e,r){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let n=this._namespaceList.indexOf(t);n>=0&&this._namespaceList.splice(n,1),t.destroy(r),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let r=new Set,t=this.statesByElement.get(e);if(t){for(let n of t.values())if(n.namespaceId){let o=this._fetchNamespace(n.namespaceId);o&&r.add(o)}}return r}trigger(e,r,t,n){if(lg(r)){let o=this._fetchNamespace(e);if(o)return o.trigger(r,t,n),!0}return!1}insertNode(e,r,t,n){if(!lg(r))return;let o=r[Ao];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(r);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(r,t)}n&&this.collectEnterElement(r)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,r){r?this.disabledNodes.has(e)||(this.disabledNodes.add(e),mo(e,xw)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ql(e,xw))}removeNode(e,r,t){if(lg(r)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(r,t):this.markElementAsRemoved(e,r,!1,t);let o=this.namespacesByHostElement.get(r);o&&o.id!==e&&o.removeNode(r,t)}else this._onRemovalComplete(r,t)}markElementAsRemoved(e,r,t,n,o){this.collectedLeaveElements.push(r),r[Ao]={namespaceId:e,setForRemoval:n,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,r,t,n,o){return lg(r)?this._fetchNamespace(e).listen(r,t,n,o):()=>{}}_buildInstruction(e,r,t,n,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,n,e.fromState.options,e.toState.options,r,o)}destroyInnerAnimations(e){let r=this.driver.query(e,dg,!0);r.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(r=this.driver.query(e,Iw,!0),r.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let r=this.playersByElement.get(e);r&&r.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let r=this.playersByQueriedElement.get(e);r&&r.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ta(this.players).onDone(()=>e());e()})}processLeaveNode(e){let r=e[Ao];if(r&&r.setForRemoval){if(e[Ao]=sO,r.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(r.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}e.classList?.contains(xw)&&this.markElementAsDisabled(e,!1),this.driver.query(e,gY,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,n)=>this._balanceNamespaceList(t,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],r.length?Ta(r).onDone(()=>{t.forEach(n=>n())}):t.forEach(n=>n())}}reportError(e){throw Nq(e)}_flushAnimations(e,r){let t=new Xd,n=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,f=new Set;this.disabledNodes.forEach(we=>{f.add(we);let Ne=this.driver.query(we,fY,!0);for(let Ge=0;Ge{let Ge=tO+R++;E.set(Ne,Ge),we.forEach(kt=>mo(kt,Ge))});let j=[],F=new Set,ge=new Set;for(let we=0;weF.add(kt)):ge.add(Ne))}let ot=new Map,rt=QA(C,Array.from(F));rt.forEach((we,Ne)=>{let Ge=Ew+R++;ot.set(Ne,Ge),we.forEach(kt=>mo(kt,Ge))}),e.push(()=>{x.forEach((we,Ne)=>{let Ge=E.get(Ne);we.forEach(kt=>ql(kt,Ge))}),rt.forEach((we,Ne)=>{let Ge=ot.get(Ne);we.forEach(kt=>ql(kt,Ge))}),j.forEach(we=>{this.processLeaveNode(we)})});let Mi=[],Nt=[];for(let we=this._namespaceList.length-1;we>=0;we--)this._namespaceList[we].drainQueuedTransitions(r).forEach(Ge=>{let kt=Ge.player,Pi=Ge.element;if(Mi.push(kt),this.collectedEnterElements.length){let Ki=Pi[Ao];if(Ki&&Ki.setForMove){if(Ki.previousTriggersValues&&Ki.previousTriggersValues.has(Ge.triggerName)){let Aa=Ki.previousTriggersValues.get(Ge.triggerName),$n=this.statesByElement.get(Ge.element);if($n&&$n.has(Ge.triggerName)){let iu=$n.get(Ge.triggerName);iu.value=Aa,$n.set(Ge.triggerName,iu)}}kt.destroy();return}}let Oo=!v||!this.driver.containsElement(v,Pi),An=ot.get(Pi),Nr=E.get(Pi),ui=this._buildInstruction(Ge,t,Nr,An,Oo);if(ui.errors&&ui.errors.length){Nt.push(ui);return}if(Oo){kt.onStart(()=>bs(Pi,ui.fromStyles)),kt.onDestroy(()=>rr(Pi,ui.toStyles)),n.push(kt);return}if(Ge.isFallbackTransition){kt.onStart(()=>bs(Pi,ui.fromStyles)),kt.onDestroy(()=>rr(Pi,ui.toStyles)),n.push(kt);return}let rC=[];ui.timelines.forEach(Ki=>{Ki.stretchStartingKeyframe=!0,this.disabledNodes.has(Ki.element)||rC.push(Ki)}),ui.timelines=rC,t.append(Pi,ui.timelines);let KO={instruction:ui,player:kt,element:Pi};a.push(KO),ui.queriedElements.forEach(Ki=>Hn(s,Ki,[]).push(kt)),ui.preStyleProps.forEach((Ki,Aa)=>{if(Ki.size){let $n=l.get(Aa);$n||l.set(Aa,$n=new Set),Ki.forEach((iu,xg)=>$n.add(xg))}}),ui.postStyleProps.forEach((Ki,Aa)=>{let $n=u.get(Aa);$n||u.set(Aa,$n=new Set),Ki.forEach((iu,xg)=>$n.add(xg))})});if(Nt.length){let we=[];Nt.forEach(Ne=>{we.push(Lq(Ne.triggerName,Ne.errors))}),Mi.forEach(Ne=>Ne.destroy()),this.reportError(we)}let Ht=new Map,_i=new Map;a.forEach(we=>{let Ne=we.element;t.has(Ne)&&(_i.set(Ne,Ne),this._beforeAnimationBuild(we.player.namespaceId,we.instruction,Ht))}),n.forEach(we=>{let Ne=we.element;this._getPreviousPlayers(Ne,!1,we.namespaceId,we.triggerName,null).forEach(kt=>{Hn(Ht,Ne,[]).push(kt),kt.destroy()})});let ar=j.filter(we=>KA(we,l,u)),Fr=new Map;YA(Fr,this.driver,ge,u,Jo).forEach(we=>{KA(we,l,u)&&ar.push(we)});let ka=new Map;x.forEach((we,Ne)=>{YA(ka,this.driver,new Set(we),l,hp)}),ar.forEach(we=>{let Ne=Fr.get(we),Ge=ka.get(we);Fr.set(we,new Map([...Ne?.entries()??[],...Ge?.entries()??[]]))});let Cg=[],nC=[],oC={};a.forEach(we=>{let{element:Ne,player:Ge,instruction:kt}=we;if(t.has(Ne)){if(f.has(Ne)){Ge.onDestroy(()=>rr(Ne,kt.toStyles)),Ge.disabled=!0,Ge.overrideTotalTime(kt.totalTime),n.push(Ge);return}let Pi=oC;if(_i.size>1){let An=Ne,Nr=[];for(;An=An.parentNode;){let ui=_i.get(An);if(ui){Pi=ui;break}Nr.push(An)}Nr.forEach(ui=>_i.set(ui,Pi))}let Oo=this._buildAnimation(Ge.namespaceId,kt,Ht,o,ka,Fr);if(Ge.setRealPlayer(Oo),Pi===oC)Cg.push(Ge);else{let An=this.playersByElement.get(Pi);An&&An.length&&(Ge.parentPlayer=Ta(An)),n.push(Ge)}}else bs(Ne,kt.fromStyles),Ge.onDestroy(()=>rr(Ne,kt.toStyles)),nC.push(Ge),f.has(Ne)&&n.push(Ge)}),nC.forEach(we=>{let Ne=o.get(we.element);if(Ne&&Ne.length){let Ge=Ta(Ne);we.setRealPlayer(Ge)}}),n.forEach(we=>{we.parentPlayer?we.syncPlayerEvents(we.parentPlayer):we.destroy()});for(let we=0;we!Oo.destroyed);Pi.length?DY(this,Ne,Pi):this.processLeaveNode(Ne)}return j.length=0,Cg.forEach(we=>{this.players.push(we),we.onDone(()=>{we.destroy();let Ne=this.players.indexOf(we);this.players.splice(Ne,1)}),we.play()}),Cg}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,r,t,n,o){let a=[];if(r){let s=this.playersByQueriedElement.get(e);s&&(a=s)}else{let s=this.playersByElement.get(e);if(s){let l=!o||o==Kd;s.forEach(u=>{u.queued||!l&&u.triggerName!=n||a.push(u)})}}return(t||n)&&(a=a.filter(s=>!(t&&t!=s.namespaceId||n&&n!=s.triggerName))),a}_beforeAnimationBuild(e,r,t){let n=r.triggerName,o=r.element,a=r.isRemovalTransition?void 0:e,s=r.isRemovalTransition?void 0:n;for(let l of r.timelines){let u=l.element,f=u!==o,v=Hn(t,u,[]);this._getPreviousPlayers(u,f,a,s,r.toState).forEach(x=>{let E=x.getRealPlayer();E.beforeDestroy&&E.beforeDestroy(),x.destroy(),v.push(x)})}bs(o,r.fromStyles)}_buildAnimation(e,r,t,n,o,a){let s=r.triggerName,l=r.element,u=[],f=new Set,v=new Set,C=r.timelines.map(E=>{let R=E.element;f.add(R);let j=R[Ao];if(j&&j.removedBeforeQueried)return new _a(E.duration,E.delay);let F=R!==l,ge=SY((t.get(R)||bY).map(Ht=>Ht.getRealPlayer())).filter(Ht=>{let _i=Ht;return _i.element?_i.element===R:!1}),ot=o.get(R),rt=a.get(R),Mi=ZA(this._normalizer,E.keyframes,ot,rt),Nt=this._buildPlayer(E,Mi,ge);if(E.subTimeline&&n&&v.add(R),F){let Ht=new eu(e,s,R);Ht.setRealPlayer(Nt),u.push(Ht)}return Nt});u.forEach(E=>{Hn(this.playersByQueriedElement,E.element,[]).push(E),E.onDone(()=>wY(this.playersByQueriedElement,E.element,E))}),f.forEach(E=>mo(E,BA));let x=Ta(C);return x.onDestroy(()=>{f.forEach(E=>ql(E,BA)),rr(l,r.toStyles)}),v.forEach(E=>{Hn(n,E,[]).push(x)}),x}_buildPlayer(e,r,t){return r.length>0?this.driver.animate(e.element,r,e.duration,e.delay,e.easing,t):new _a(e.duration,e.delay)}},eu=class{constructor(e,r,t){this.namespaceId=e,this.triggerName=r,this.element=t,this._player=new _a,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((r,t)=>{r.forEach(n=>Uw(e,t,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let r=this._player;r.triggerCallback&&e.onStart(()=>r.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,r){Hn(this._queuedCallbacks,e,[]).push(r)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1: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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let r=this._player;r.triggerCallback&&r.triggerCallback(e)}};function wY(i,e,r){let t=i.get(e);if(t){if(t.length){let n=t.indexOf(r);t.splice(n,1)}t.length==0&&i.delete(e)}return t}function CY(i){return i??null}function lg(i){return i&&i.nodeType===1}function xY(i){return i=="start"||i=="done"}function qA(i,e){let r=i.style.display;return i.style.display=e??"none",r}function YA(i,e,r,t,n){let o=[];r.forEach(l=>o.push(qA(l)));let a=[];t.forEach((l,u)=>{let f=new Map;l.forEach(v=>{let C=e.computeStyle(u,v,n);f.set(v,C),(!C||C.length==0)&&(u[Ao]=yY,a.push(u))}),i.set(u,f)});let s=0;return r.forEach(l=>qA(l,o[s++])),a}function QA(i,e){let r=new Map;if(i.forEach(s=>r.set(s,[])),e.length==0)return r;let t=1,n=new Set(e),o=new Map;function a(s){if(!s)return t;let l=o.get(s);if(l)return l;let u=s.parentNode;return r.has(u)?l=u:n.has(u)?l=t:l=a(u),o.set(s,l),l}return e.forEach(s=>{let l=a(s);l!==t&&r.get(l).push(s)}),r}function mo(i,e){i.classList?.add(e)}function ql(i,e){i.classList?.remove(e)}function DY(i,e,r){Ta(r).onDone(()=>i.processLeaveNode(e))}function SY(i){let e=[];return lO(i,e),e}function lO(i,e){for(let r=0;rn.add(o)):e.set(i,t),r.delete(i),!0}var Ql=class{constructor(e,r,t){this._driver=r,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(n,o)=>{},this._transitionEngine=new jw(e.body,r,t),this._timelineEngine=new Lw(e.body,r,t),this._transitionEngine.onRemovalComplete=(n,o)=>this.onRemovalComplete(n,o)}registerTrigger(e,r,t,n,o){let a=e+"-"+n,s=this._triggerCache[a];if(!s){let l=[],u=[],f=oO(this._driver,o,l,u);if(l.length)throw Eq(n,l);u.length&&void 0,s=mY(n,f,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(r,n,s)}register(e,r){this._transitionEngine.register(e,r)}destroy(e,r){this._transitionEngine.destroy(e,r)}onInsert(e,r,t,n){this._transitionEngine.insertNode(e,r,t,n)}onRemove(e,r,t){this._transitionEngine.removeNode(e,r,t)}disableAnimations(e,r){this._transitionEngine.markElementAsDisabled(e,r)}process(e,r,t,n){if(t.charAt(0)=="@"){let[o,a]=VA(t),s=n;this._timelineEngine.command(o,r,a,s)}else this._transitionEngine.trigger(e,r,t,n)}listen(e,r,t,n,o){if(t.charAt(0)=="@"){let[a,s]=VA(t);return this._timelineEngine.listen(a,r,s,o)}return this._transitionEngine.listen(e,r,t,n,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function IY(i,e){let r=null,t=null;return Array.isArray(e)&&e.length?(r=Sw(e[0]),e.length>1&&(t=Sw(e[e.length-1]))):e instanceof Map&&(r=Sw(e)),r||t?new Bw(i,r,t):null}var Yl=class Yl{constructor(e,r,t){this._element=e,this._startStyles=r,this._endStyles=t,this._state=0;let n=Yl.initialStylesByElement.get(e);n||Yl.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&rr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rr(this._element,this._initialStyles),this._endStyles&&(rr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Yl.initialStylesByElement.delete(this._element),this._startStyles&&(bs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bs(this._element,this._endStyles),this._endStyles=null),rr(this._element,this._initialStyles),this._state=3)}};Yl.initialStylesByElement=new WeakMap;var Bw=Yl;function Sw(i){let e=null;return i.forEach((r,t)=>{MY(t)&&(e=e||new Map,e.set(t,r))}),e}function MY(i){return i==="display"||i==="position"}var _g=class{constructor(e,r,t,n){this.element=e,this.keyframes=r,this.options=t,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();this.domPlayer.addEventListener("finish",r),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",r)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let r=[];return e.forEach(t=>{r.push(Object.fromEntries(t))}),r}_triggerWebAnimation(e,r,t){return e.animate(this._convertKeyframesToObject(r),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,n)=>{n!=="offset"&&e.set(n,this._finished?t:qw(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let r=e==="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},vg=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,r){return XA(e,r)}getParentElement(e){return $w(e)}query(e,r,t){return JA(e,r,t)}computeStyle(e,r,t){return qw(e,r)}animate(e,r,t,n,o,a=[]){let s=n==0?"both":"forwards",l={duration:t,delay:n,fill:s};o&&(l.easing=o);let u=new Map,f=a.filter(x=>x instanceof _g);Yq(t,n)&&f.forEach(x=>{x.currentSnapshot.forEach((E,R)=>u.set(R,E))});let v=Wq(r).map(x=>new Map(x));v=Qq(e,v,u);let C=IY(e,v);return new _g(e,v,l,C)}};var cg="@",cO="@.disabled",bg=class{constructor(e,r,t,n){this.namespaceId=e,this.delegate=r,this.engine=t,this._onDestroy=n,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,r){return this.delegate.createElement(e,r)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,r){this.delegate.appendChild(e,r),this.engine.onInsert(this.namespaceId,r,e,!1)}insertBefore(e,r,t,n=!0){this.delegate.insertBefore(e,r,t),this.engine.onInsert(this.namespaceId,r,e,n)}removeChild(e,r,t){this.engine.onRemove(this.namespaceId,r,this.delegate)}selectRootElement(e,r){return this.delegate.selectRootElement(e,r)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,r,t,n){this.delegate.setAttribute(e,r,t,n)}removeAttribute(e,r,t){this.delegate.removeAttribute(e,r,t)}addClass(e,r){this.delegate.addClass(e,r)}removeClass(e,r){this.delegate.removeClass(e,r)}setStyle(e,r,t,n){this.delegate.setStyle(e,r,t,n)}removeStyle(e,r,t){this.delegate.removeStyle(e,r,t)}setProperty(e,r,t){r.charAt(0)==cg&&r==cO?this.disableAnimations(e,!!t):this.delegate.setProperty(e,r,t)}setValue(e,r){this.delegate.setValue(e,r)}listen(e,r,t){return this.delegate.listen(e,r,t)}disableAnimations(e,r){this.engine.disableAnimations(e,r)}},zw=class extends bg{constructor(e,r,t,n,o){super(r,t,n,o),this.factory=e,this.namespaceId=r}setProperty(e,r,t){r.charAt(0)==cg?r.charAt(1)=="."&&r==cO?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,r.slice(1),t):this.delegate.setProperty(e,r,t)}listen(e,r,t){if(r.charAt(0)==cg){let n=TY(e),o=r.slice(1),a="";return o.charAt(0)!=cg&&([o,a]=kY(o)),this.engine.listen(this.namespaceId,n,o,a,s=>{let l=s._data||-1;this.factory.scheduleListenerCallback(l,t,s)})}return this.delegate.listen(e,r,t)}};function TY(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function kY(i){let e=i.indexOf("."),r=i.substring(0,e),t=i.slice(e+1);return[r,t]}var yg=class{constructor(e,r,t){this.delegate=e,this.engine=r,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(n,o)=>{let a=o?.parentNode(n);a&&o.removeChild(a,n)}}createRenderer(e,r){let t="",n=this.delegate.createRenderer(e,r);if(!e||!r?.data?.animation){let u=this._rendererCache,f=u.get(n);if(!f){let v=()=>u.delete(n);f=new bg(t,n,this.engine,v),u.set(n,f)}return f}let o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(o,a,e,u.name,u)};return r.data.animation.forEach(s),new zw(this,a,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,t){if(e>=0&&er(t));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(o=>{let[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),n.push([r,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var OY=(()=>{let e=class e extends Ql{constructor(t,n,o){super(t,n,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(n){return new(n||e)(M(ae),M(ys),M(ws))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function RY(){return new mg}function PY(i,e,r){return new yg(i,e,r)}var uO=[{provide:ws,useFactory:RY},{provide:Ql,useClass:OY},{provide:Kr,useFactory:PY,deps:[bh,Ql,Z]}],dO=[{provide:ys,useFactory:()=>new vg},{provide:Mt,useValue:"BrowserAnimations"},...uO],FY=[{provide:ys,useClass:Ww},{provide:Mt,useValue:"NoopAnimations"},...uO],mO=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?FY:dO}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:dO,imports:[wh]});let i=e;return i})();var LY=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],VY=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function jY(i,e){i&1&&(c(0,"span",3),se(1,1),d())}function BY(i,e){i&1&&(c(0,"span",6),se(1,2),d())}var zY='.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color)}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}',UY=[[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],HY=["mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function $Y(i,e){i&1&&I(0,"span",0)}function WY(i,e){i&1&&(c(0,"span",2),se(1),d())}function GY(i,e){i&1&&se(0,1)}function qY(i,e){i&1&&I(0,"span",7)}function YY(i,e){if(i&1&&D(0,GY,1,0)(1,qY,1,0,"span",7),i&2){let r=_();De(r.contentEditInput?0:1)}}function QY(i,e){i&1&&se(0,2)}function KY(i,e){i&1&&(c(0,"span",5),se(1,3),d())}var fO=["*"],ZY=".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}",gO=new O("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),hO=new O("MatChipAvatar"),pO=new O("MatChipTrailingIcon"),Zw=new O("MatChipRemove"),eC=new O("MatChip"),wg=(()=>{let e=class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(t){this._disabled=t}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(t,n){this._elementRef=t,this._parentChip=n,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,t.nativeElement.nodeName==="BUTTON"&&t.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};e.\u0275fac=function(n){return new(n||e)(h(G),h(eC))},e.\u0275dir=N({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,o){n&1&&b("click",function(s){return o._handleClick(s)})("keydown",function(s){return o._handleKeydown(s)}),n&2&&(ie("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),ne("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?-1:Zt(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[he]});let i=e;return i})();var _O=(()=>{let e=class e extends wg{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(t){this.disabled||(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&ie("aria-hidden",null)},standalone:!0,features:[ye([{provide:Zw,useExisting:e}]),be]});let i=e;return i})(),XY=0,Xw=(()=>{let e=class e{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}constructor(t,n,o,a,s,l,u,f){this._changeDetectorRef=t,this._elementRef=n,this._ngZone=o,this._focusMonitor=a,this._globalRippleOptions=u,this._onFocus=new W,this._onBlur=new W,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${XY++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.tabIndex=-1,this.removed=new T,this.destroyed=new T,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=k(cp),this._injector=k(Pe),this._document=s,this._animationsDisabled=l==="NoopAnimations",f!=null&&(this.tabIndex=parseInt(f)??-1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let t=this._elementRef.nativeElement;this._isBasicChip=t.hasAttribute(this.basicChipAttrName)||t.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=yt(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(t){(t.keyCode===8&&!t.repeat||t.keyCode===46)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===t||o.contains(t)})}_getActions(){let t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_getTabIndex(){return this.role?this.disabled?-1:this.tabIndex:null}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let n=t!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):ni(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(G),h(Z),h(wi),h(ae),h(Mt,8),h(Tl,8),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,hO,5),Fe(a,pO,5),Fe(a,Zw,5),Fe(a,hO,5),Fe(a,pO,5),Fe(a,Zw,5)),n&2){let s;Q(s=K())&&(o.leadingIcon=s.first),Q(s=K())&&(o.trailingIcon=s.first),Q(s=K())&&(o.removeIcon=s.first),Q(s=K())&&(o._allLeadingIcons=s),Q(s=K())&&(o._allTrailingIcons=s),Q(s=K())&&(o._allRemoveIcons=s)}},viewQuery:function(n,o){if(n&1&&ce(wg,5),n&2){let a;Q(a=K())&&(o.primaryAction=a.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&(Di("id",o.id),ie("role",o.role)("tabindex",o._getTabIndex())("aria-label",o.ariaLabel),qt("mat-"+(o.color||"primary")),ne("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",Y],highlighted:[2,"highlighted","highlighted",Y],disableRipple:[2,"disableRipple","disableRipple",Y],disabled:[2,"disabled","disabled",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:Zt(t)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[ye([{provide:eC,useExisting:e}]),he,re],ngContentSelectors:VY,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(Ue(LY),I(0,"span",0),c(1,"span",1)(2,"span",2),D(3,jY,2,0,"span",3),c(4,"span",4),se(5),I(6,"span",5),d()()(),D(7,BY,2,0,"span",6)),n&2&&(m(2),p("isInteractive",!1),m(),De(o.leadingIcon?3:-1),m(4),De(o._hasTrailingIcon()?7:-1))},dependencies:[wg],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color)}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Kw=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._document=n}initialize(t){this.getNativeElement().focus(),this.setValue(t)}getNativeElement(){return this._elementRef.nativeElement}setValue(t){this.getNativeElement().textContent=t,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let t=this._document.createRange();t.selectNodeContents(this.getNativeElement()),t.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(t)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(ae))},e.\u0275dir=N({type:e,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"],standalone:!0});let i=e;return i})(),tC=(()=>{let e=class e extends Xw{constructor(t,n,o,a,s,l,u,f){super(t,n,o,a,s,l,u,f),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new T,this._isEditing=!1,this.role="row",this._onBlur.pipe(me(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(t){t.keyCode===13&&!this.disabled?this._isEditing?(t.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(t):this._isEditing?t.stopPropagation():super._handleKeydown(t)}_handleDoubleclick(t){!this.disabled&&this.editable&&this._startEditing(t)}_startEditing(t){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(t.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,ni(()=>{this._getEditInput().initialize(n),this._editStartPending=!1},{injector:this._injector})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(G),h(Z),h(wi),h(ae),h(Mt,8),h(Tl,8),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,a){if(n&1&&Fe(a,Kw,5),n&2){let s;Q(s=K())&&(o.contentEditInput=s.first)}},viewQuery:function(n,o){if(n&1&&ce(Kw,5),n&2){let a;Q(a=K())&&(o.defaultEditInput=a.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(n,o){n&1&&b("focus",function(s){return o._handleFocus(s)})("dblclick",function(s){return o._handleDoubleclick(s)}),n&2&&(Di("id",o.id),ie("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),ne("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{editable:"editable"},outputs:{edited:"edited"},standalone:!0,features:[ye([{provide:Xw,useExisting:e},{provide:eC,useExisting:e}]),be,re],ngContentSelectors:HY,decls:10,vars:10,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],["matChipEditInput",""]],template:function(n,o){n&1&&(Ue(UY),D(0,$Y,1,0,"span",0),c(1,"span",1),D(2,WY,2,0,"span",2),c(3,"span",3),D(4,YY,2,1)(5,QY,1,0),I(6,"span",4),d()(),D(7,KY,2,0,"span",5),c(8,"span",6),g(9),d()),n&2&&(De(o._isEditing?-1:0),m(),p("tabIndex",o.tabIndex)("disabled",o.disabled),ie("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),m(),De(o.leadingIcon?2:-1),m(2),De(o._isEditing?4:5),m(3),De(o._hasTrailingIcon()?7:-1),m(),p("id",o._ariaDescriptionId),m(),He(o.ariaDescription))},dependencies:[wg,Kw],styles:[zY],encapsulation:2,changeDetection:0});let i=e;return i})(),JY=(()=>{let e=class e{get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(t){this._explicitRole=t}get focused(){return this._hasFocusedChip()}constructor(t,n,o){this._elementRef=t,this._changeDetectorRef=n,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new W,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new Yn}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(t=>{t.disabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&t{this.tabIndex=t,this._changeDetectorRef.markForCheck()})}}_getChipStream(t){return this._chips.changes.pipe(At(null),It(()=>yt(...this._chips.map(t))))}_originatesFromChip(t){let n=t.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-mdc-chip"))return!0;n=n.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(At(this._chips)).subscribe(t=>{let n=[];t.forEach(o=>o._getActions().forEach(a=>n.push(a))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new ma(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(me(this._destroyed)).subscribe(({chip:t})=>{let n=t._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(me(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return!t.isInteractive||t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(At(null),me(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(me(this._destroyed)).subscribe(t=>{let o=this._chips.toArray().indexOf(t.chip);this._isValidIndex(o)&&t.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[t];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};e.\u0275fac=function(n){return new(n||e)(h(G),h(ue),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-set"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,Xw,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&ie("role",o.role)},inputs:{disabled:[2,"disabled","disabled",Y],role:"role",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Zt(t)]},standalone:!0,features:[he,re],ngContentSelectors:fO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Ue(),c(0,"div",0),se(1),d())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let i=e;return i})();var Jw=class{constructor(e,r){this.source=e,this.value=r}},vO=(()=>{let e=class e extends JY{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(ir.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(t){this._value=t}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,l,u){super(t,n,o),this.ngControl=u,this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new T,this.valueChange=new T,this._chips=void 0,this.stateChanges=new W,this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Ir(l,u,s,a,this.stateChanges)}ngOnInit(){this.ngControl&&this.ngControl.control?.events.pipe(me(this._destroyed)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngAfterContentInit(){this.chipBlurChanges.pipe(me(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),yt(this.chipFocusChanges,this._chips.changes).pipe(me(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit(),this._chipInput}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(t){this._chipInput=t,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(t){!this.disabled&&!this._originatesFromChip(t)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(t){this._ariaDescribedbyIds=t,this._chipInput?.setDescribedByIds(t)}writeValue(t){this._value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(t){t.keyCode===9?this._chipInput.focused&&Ot(t,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(t.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(t),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let t=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=t,this.change.emit(new Jw(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(ue),h(Tt,8),h(Mo,8),h(us,8),h(Mr),h(kn,10))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,tC,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(ie("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),ne("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-invalid",o.errorState)("mat-mdc-chip-list-required",o.required))},inputs:{disabled:[2,"disabled","disabled",Y],placeholder:"placeholder",required:[2,"required","required",Y],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},standalone:!0,features:[ye([{provide:Da,useExisting:e}]),he,be,re],ngContentSelectors:fO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Ue(),c(0,"div",0),se(1),d())},styles:[ZY],encapsulation:2,changeDetection:0});let i=e;return i})(),eQ=0,bO=(()=>{let e=class e{get chipGrid(){return this._chipGrid}set chipGrid(t){t&&(this._chipGrid=t,this._chipGrid.registerInput(this))}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(t){this._disabled=t}get empty(){return!this.inputElement.value}constructor(t,n,o){this._elementRef=t,this.focused=!1,this.addOnBlur=!1,this.chipEnd=new T,this.placeholder="",this.id=`mat-mdc-chip-list-input-${eQ++}`,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=n.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(t){this.empty&&t.keyCode===8?(t.repeat||this._chipGrid._focusLastChip(),t.preventDefault()):this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._chipGrid.stateChanges.next()}_emitChipEnd(t){(!t||this._isSeparatorKey(t))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),t?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}setDescribedByIds(t){let n=this._elementRef.nativeElement;t.length?n.setAttribute("aria-describedby",t.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(t){return!Ot(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(gO),h(To,8))},e.\u0275dir=N({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._keydown(s)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(Di("id",o.id),ie("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",Y],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",Y]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],standalone:!0,features:[he,Qe]});let i=e;return i})();var yO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Mr,{provide:gO,useValue:{separatorKeyCodes:[13]}}],imports:[fe,Tr,fe]});let i=e;return i})();var wO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var CO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[fe,wO,Vn]});let i=e;return i})();var iQ=["*",[["mat-toolbar-row"]]],nQ=["*","mat-toolbar-row"],oQ=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let i=e;return i})(),xO=(()=>{let e=class e{constructor(t,n,o){this._elementRef=t,this._platform=n,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(ae))},e.\u0275cmp=S({type:e,selectors:[["mat-toolbar"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,oQ,5),n&2){let s;Q(s=K())&&(o._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(qt(o.color?"mat-"+o.color:""),ne("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[re],ngContentSelectors:nQ,decls:2,vars:0,template:function(n,o){n&1&&(Ue(iQ),se(0),se(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.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;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let i=e;return i})();var DO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[fe,fe]});let i=e;return i})();var SO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[{provide:wy,useValue:{floatLabel:"always",appearance:"outline"}},{provide:ap,useValue:udsData.language}],imports:[Si,rT,Fp,DO,tr,Mk,Nl,CO,hM,hs,Rk,mf,_A,nM,ek,UT,WT,jf,Ff,mT,yO,CA,Zk,Uk,_T,zf,xk,fk]});let i=e;return i})();function aQ(i,e){if(i&1){let r=A();c(0,"button",7),b("click",function(){let n=y(r).$implicit,o=_();return w(o.changeLang(n))}),g(1),d()}if(i&2){let r=e.$implicit;m(),He(r.name)}}function sQ(i,e){if(i&1&&(c(0,"button",12)(1,"i",8),g(2,"face"),d(),g(3),d()),i&2){let r=_(),t=Ce(7);p("matMenuTriggerFor",t),m(3),He(r.api.user.user)}}function lQ(i,e){if(i&1&&(c(0,"button",18),g(1),c(2,"i",8),g(3,"arrow_drop_down"),d()()),i&2){let r=_(),t=Ce(7);p("matMenuTriggerFor",t),m(),P("",r.api.user.user," ")}}var EO=(()=>{let e=class e{constructor(t){this.api=t,this.lang={id:"",name:""},this.isNavbarCollapsed=!0;let n=t.config.language;this.langs=[];for(let o of t.config.available_languages)o.id===n?this.lang=o:this.langs.push(o)}ngOnInit(){}changeLang(t){this.lang=t;let n=document.getElementById("id_language");return n&&n.setAttribute("value",t.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-navbar"]],decls:39,vars:13,consts:[["appMenu","matMenu"],["userMenu","matMenu"],["shrink","matMenu"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(n,o){if(n&1){let a=A();c(0,"form",3),I(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),D(5,aQ,2,1,"button",6),d(),c(6,"mat-menu",null,1)(8,"button",7),b("click",function(){return y(a),w(o.user())}),c(9,"i",8),g(10,"home"),d(),c(11,"uds-translate"),g(12,"User mode"),d()(),c(13,"button",7),b("click",function(){return y(a),w(o.logout())}),c(14,"i",9),g(15,"exit_to_app"),d(),c(16,"uds-translate"),g(17,"Logout"),d()()(),c(18,"mat-menu",10,2),D(20,sQ,4,2,"button",11),c(21,"button",12)(22,"i",8),g(23,"language"),d(),g(24),d()(),c(25,"mat-toolbar",13)(26,"button",14),I(27,"img",15),d(),I(28,"span",16),c(29,"div",17)(30,"button",18),g(31),c(32,"i",8),g(33,"arrow_drop_down"),d()(),D(34,lQ,4,2,"button",19),d(),c(35,"div",20)(36,"button",21)(37,"i",8),g(38,"menu"),d()()()()}if(n&2){let a=Ce(4),s=Ce(19);ta("action",o.api.config.urls.change_language,Ie),m(),ta("name",o.api.csrfField),ta("value",o.api.csrfToken),m(),ta("value",o.lang.id),m(3),p("ngForOf",o.langs),m(15),p("ngIf",o.api.user.isLogged),m(),p("matMenuTriggerFor",a),m(3),He(o.lang.name),m(3),p("src",o.api.staticURL("admin/img/udsicon.png"),Ie),m(3),p("matMenuTriggerFor",a),m(),P("",o.lang.name," "),m(3),p("ngIf",o.api.user.isLogged),m(2),p("matMenuTriggerFor",s)}},dependencies:[$e,pe,gi,Pp,kp,Mo,xO,ke,Gi,Ia,fs,Wf,le],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.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}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:300}.uds-nav[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000}@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}} .dark-theme .uds-nav .expanded button{color:#fff!important}']});let i=e;return i})();var IO=(()=>{let e=class e{constructor(){}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),g(1,"\xA9 2012-2023 "),c(2,"a",0),g(3,"Virtual Cable S.L.U."),d()())},styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']});let i=e;return i})();function uQ(i,e){if(i&1&&(c(0,"a",27),I(1,"img",2),c(2,"uds-translate"),g(3,"Groups"),d()()),i&2){let r=_();m(),p("src",r.icon("groups"),Ie)}}function mQ(i,e){if(i&1){let r=A();c(0,"a",3),b("click",function(){y(r);let n=_();return w(n.toggleConfig())}),I(1,"img",2),c(2,"span")(3,"uds-translate"),g(4,"Tools"),d(),c(5,"i",4),g(6,"arrow_drop_down"),d()()()}if(i&2){let r=_();m(),p("src",r.icon("tools"),Ie)}}var MO=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){}icon(t){return this.api.staticURL("admin/img/icons/"+t+".png")}toggle(t){let n=new Map([["connectivity",o=>this.connectivityShown=o?!this.connectivityShown:!1],["pools",o=>this.poolsShown=o?!this.poolsShown:!1],["config",o=>this.configShown=o?!this.configShown:!1],["tokens",o=>this.tokensShown=o?!this.tokensShown:!1],["auths",o=>this.authsShown=o?!this.authsShown:!1],["services",o=>this.servicesShown=o?!this.servicesShown:!1]]);for(let o of n)o[1](o[0]===t)}toggleConnectivity(){this.toggle("connectivity")}togglePools(){this.toggle("pools")}toggleConfig(){this.toggle("config")}toggleTokens(){this.toggle("tokens")}toggleAuths(){this.toggle("auths")}toggleServices(){this.toggle("services")}flushCache(){this.rest.system.flushCache().then(()=>{this.api.gui.snackbar.open(django.gettext("Cache flushed"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-sidebar"]],decls:124,vars:33,consts:[[1,"sidebar","mat-toolbar","mat-primary"],["mat-button","","routerLink","/summary",1,"sidebar-link"],[1,"icon",3,"src"],["mat-button","",1,"sidebar-link",3,"click"],[1,"material-icons"],[1,"submenu",3,"hidden"],["mat-button","","routerLink","/services/providers",1,"sidebar-link"],["mat-button","","routerLink","/services/servers",1,"sidebar-link"],["mat-button","","routerLink","/authenticators",1,"sidebar-link"],["mat-button","","routerLink","/mfas",1,"sidebar-link"],["mat-button","","routerLink","/osmanagers",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/transports",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/networks",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/tunnels",1,"sidebar-link"],["mat-button","","routerLink","/pools/service-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/meta-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups","class","sidebar-link",4,"ngIf"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","","class","sidebar-link",3,"click",4,"ngIf"],["mat-button","","routerLink","/tools/gallery",1,"sidebar-link"],["mat-button","","routerLink","/tools/reports",1,"sidebar-link"],["mat-button","","routerLink","/tools/notifiers",1,"sidebar-link"],[1,"submenu2",3,"hidden"],["mat-button","","routerLink","/tools/tokens/actor",1,"sidebar-link"],["mat-button","","routerLink","/tools/tokens/server",1,"sidebar-link"],["mat-button","","routerLink","/tools/configuration",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups",1,"sidebar-link"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),I(2,"img",2),c(3,"uds-translate"),g(4,"Summary"),d()(),c(5,"a",3),b("click",function(){return o.toggleServices()}),I(6,"img",2),c(7,"span")(8,"uds-translate"),g(9,"Services"),d(),c(10,"i",4),g(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),I(14,"img",2),c(15,"uds-translate"),g(16,"Providers"),d()(),c(17,"a",7),I(18,"img",2),c(19,"uds-translate"),g(20,"Servers"),d()()(),c(21,"a",3),b("click",function(){return o.toggleAuths()}),I(22,"img",2),c(23,"span")(24,"uds-translate"),g(25,"Authentication"),d(),c(26,"i",4),g(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),I(30,"img",2),c(31,"uds-translate"),g(32,"Authenticators"),d()(),c(33,"a",9),I(34,"img",2),c(35,"uds-translate"),g(36,"Multi Factor"),d()()(),c(37,"a",10),I(38,"img",2),c(39,"uds-translate"),g(40,"Os Managers"),d()(),c(41,"a",3),b("click",function(){return o.toggleConnectivity()}),I(42,"img",2),c(43,"span")(44,"uds-translate"),g(45,"Connectivity"),d(),c(46,"i",4),g(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),I(50,"img",2),c(51,"uds-translate"),g(52,"Transports"),d()(),c(53,"a",12),I(54,"img",2),c(55,"uds-translate"),g(56,"Networks"),d()(),c(57,"a",13),I(58,"img",2),c(59,"uds-translate"),g(60,"Tunnels"),d()()(),c(61,"a",3),b("click",function(){return o.togglePools()}),I(62,"img",2),c(63,"span")(64,"uds-translate"),g(65,"Pools"),d(),c(66,"i",4),g(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),I(70,"img",2),c(71,"uds-translate"),g(72,"Service pools"),d()(),c(73,"a",15),I(74,"img",2),c(75,"uds-translate"),g(76,"Meta pools"),d()(),D(77,uQ,4,1,"a",16),c(78,"a",17),I(79,"img",2),c(80,"uds-translate"),g(81,"Calendars"),d()(),c(82,"a",18),I(83,"img",2),c(84,"uds-translate"),g(85,"Accounting"),d()()(),D(86,mQ,7,1,"a",19),c(87,"div",5)(88,"a",20),I(89,"img",2),c(90,"uds-translate"),g(91,"Gallery"),d()(),c(92,"a",21),I(93,"img",2),c(94,"uds-translate"),g(95,"Reports"),d()(),c(96,"a",22),I(97,"img",2),c(98,"uds-translate"),g(99,"Notifiers"),d()(),c(100,"a",3),b("click",function(){return o.tokensShown=!o.tokensShown}),I(101,"img",2),c(102,"span")(103,"uds-translate"),g(104,"Tokens"),d(),c(105,"i",4),g(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),I(109,"img",2),c(110,"uds-translate"),g(111,"Actor"),d()(),c(112,"a",25),I(113,"img",2),c(114,"uds-translate"),g(115,"Servers"),d()()(),c(116,"a",26),I(117,"img",2),c(118,"uds-translate"),g(119,"Configuration"),d()(),c(120,"a",3),b("click",function(){return o.flushCache()}),I(121,"img",2),c(122,"uds-translate"),g(123,"Flush Cache"),d()()()()),n&2&&(m(2),p("src",o.icon("dashboard-monitor"),Ie),m(4),p("src",o.icon("providers"),Ie),m(6),p("hidden",!o.servicesShown),m(2),p("src",o.icon("providers"),Ie),m(4),p("src",o.icon("servers"),Ie),m(4),p("src",o.icon("authentication"),Ie),m(6),p("hidden",!o.authsShown),m(2),p("src",o.icon("authenticators"),Ie),m(4),p("src",o.icon("mfas"),Ie),m(4),p("src",o.icon("osmanagers"),Ie),m(4),p("src",o.icon("connectivity"),Ie),m(6),p("hidden",!o.connectivityShown),m(2),p("src",o.icon("transports"),Ie),m(4),p("src",o.icon("networks"),Ie),m(4),p("src",o.icon("tunnels"),Ie),m(4),p("src",o.icon("poolsmenu"),Ie),m(6),p("hidden",!o.poolsShown),m(2),p("src",o.icon("pools"),Ie),m(4),p("src",o.icon("metas"),Ie),m(3),p("ngIf",o.api.user.isAdmin),m(2),p("src",o.icon("calendars"),Ie),m(4),p("src",o.icon("accounts"),Ie),m(3),p("ngIf",o.api.user.isAdmin),m(),p("hidden",!o.configShown),m(2),p("src",o.icon("gallery"),Ie),m(4),p("src",o.icon("reports"),Ie),m(4),p("src",o.icon("notifiers"),Ie),m(4),p("src",o.icon("tokens"),Ie),m(6),p("hidden",!o.tokensShown),m(2),p("src",o.icon("actors"),Ie),m(4),p("src",o.icon("servers"),Ie),m(4),p("src",o.icon("configuration"),Ie),m(4),p("src",o.icon("flush-cache"),Ie))},dependencies:[pe,gi,ya,le],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.sidebar[_ngcontent-%COMP%]{position:fixed;top:4rem;padding-top:12px;bottom:0;display:flex;flex-direction:column;overflow-y:auto;width:3.7rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1);box-shadow:0 16px 38px -12px #fafafa8f,0 4px 25px #fafafa1f,0 8px 10px -5px #fafafa33;overflow-x:hidden;z-index:25}.sidebar-link[_ngcontent-%COMP%]{display:flex;width:15rem;color:transparent;-moz-transition:color .5s cubic-bezier(.86,0,.07,1);transition:color .3s cubic-bezier(.86,0,.07,1);font-weight:300;font-size:1rem;justify-content:left;justify-items:center;padding-left:1rem;text-decoration:none}.sidebar[_ngcontent-%COMP%]:hover{width:15rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1)}.sidebar[_ngcontent-%COMP%]:hover .sidebar-link[_ngcontent-%COMP%]{color:#000}.submenu[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em -.5rem 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']});let i=e;return i})();function pQ(i,e){if(i&1&&I(0,"div",1),i&2){let r=_();p("innerHTML",r.messages,Gt)}}var TO=(()=>{let e=class e{constructor(t){this.api=t,this.messages="",this.visible=!1}ngOnInit(){let t=n=>n.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1");if(this.api.notices.length>0){let n='
';this.messages='
'+n+this.api.notices.map(t).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&D(0,pQ,1,1,"div",0),n&2&&p("ngIf",o.visible)},dependencies:[pe],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0rem;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]});let i=e;return i})();var kO=(()=>{let e=class e{constructor(t){this.api=t,this.title="UDS Admin"}get blackTheme(){return this.api.getFromStorage("blackTheme")==="true"}set blackTheme(t){this.api.putOnStorage("blackTheme",t.toString())}handleKeyboardEvent(t){t.altKey&&t.ctrlKey&&t.key==="b"&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){this.api.switchTheme(this.blackTheme)}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&b("keydown",function(s){return o.handleKeyboardEvent(s)},!1,_S)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(I(0,"uds-navbar")(1,"uds-sidebar"),c(2,"div",0)(3,"div",1),I(4,"uds-notices")(5,"router-outlet"),d(),c(6,"div",2),I(7,"uds-footer"),d()())},dependencies:[pb,EO,IO,MO,TO],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:calc(100% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]});let i=e;return i})();var AO=(()=>{let e=class e extends Sa{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var OO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","autocomplete"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("autocomplete","new-"+o.field.name))},dependencies:[lt,xe,Ri,ms,Se,_e,Ae,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();function gQ(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r),m(),P(" ",r," ")}}var RO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.values=[]}ngOnInit(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=t.map(n=>n.text)}_filter(){let t=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(t))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"],[3,"value"]],template:function(n,o){if(n&1){let a=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-autocomplete",null,0),D(5,gQ,2,2,"mat-option",1),d(),c(6,"input",2),H("ngModelChange",function(l){return y(a),$(o.field.value,l)||(o.field.value=l),w(l)}),b("change",function(){return y(a),w(o.changed.emit(o))}),d()()}if(n&2){let a=Ce(4);m(2),P(" ",o.field.gui.label," "),m(3),p("ngForOf",o._filter()),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",a)("autocomplete","new-"+o.field.name)}},dependencies:[$e,lt,xe,Ri,ms,Se,_e,Ae,ft,it,Ul,gs],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var PO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always"],["matInput","","type","number",3,"ngModelChange","change","ngModel","placeholder","required","disabled"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[lt,jn,xe,Ri,Se,_e,Ae,ft]});let i=e;return i})();var FO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModelChange","change","ngModel","placeholder","required","disabled","type"],["matSuffix","","mat-icon-button","",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),b("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),g(6),d()()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),He(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[lt,xe,Ri,Se,Gi,_e,Ae,ro,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var NO=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(n,o){}});let i=e;return i})();var LO=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:7,consts:[["floatLabel","auto"],["matInput","",3,"ngModelChange","ngModel","placeholder","required","readonly","rows","maxlength"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"textarea",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",!!o.field.gui.required)("readonly",o.field.gui.readonly===!0)("rows",o.field.gui.lines||3)("maxlength",o.field.gui.length||255))},dependencies:[lt,xe,Ri,ms,Se,_e,Ae,ft]});let i=e;return i})();function _Q(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.text," ")}}var VO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.filter=""}setValue(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",t.length>0&&!t.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&t.length>0&&(this.field.value=t[0].id)}ngOnInit(){this.setValue()}filteredValues(){let t=this.field.gui.choices||[];if(this.setValue(),!this.filter)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:9,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),D(5,_Q,2,2,"mat-option",2),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),p("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),p("ngForOf",o.filteredValues()))},dependencies:[$e,xe,Ri,Se,_e,Ae,vt,it,di]});let i=e;return i})();function vQ(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.text," ")}}var jO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||new Array}filteredValues(){let t=this.field.gui.choices||[];if(!this.filter||t.length===0)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let t=this.field.value||[],n="";t.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of t)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(a=>a.id===o)?.text||o;return n}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),g(5),d(),c(6,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),D(7,vQ,2,2,"mat-option",2),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),P(" ",o.selectTriggerString()," "),m(),p("options",o.field.gui.choices),m(),p("ngForOf",o.filteredValues()))},dependencies:[$e,xe,Ri,Se,_e,Ae,vt,uf,it,di]});let i=e;return i})();function bQ(i,e){if(i&1){let r=A();c(0,"div",12)(1,"div",13),g(2),d(),c(3,"div",14),g(4," \xA0"),c(5,"a",15),b("click",function(){let n=y(r).index,o=_();return w(o.removeElement(n))}),c(6,"i",16),g(7,"close"),d()()()()}if(i&2){let r=e.$implicit;m(2),P(" ",r," ")}}var BO=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.values=[],this.input="",this.done=new Jt,this.data.values.forEach(s=>this.values.push(s))}static launch(t,n,o){let a=window.innerWidth<800?"50%":"30%";return t.gui.dialog.open(e,{width:a,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(t=>{this.values.push(t)}),this.input=""}checkKey(t){t.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(t){this.values.splice(t,1)}save(){this.data.values.length=0,this.values.forEach(t=>this.data.values.push(t)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"keyup","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),g(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),D(5,bQ,8,1,"div",3),d(),c(6,"div",4)(7,"button",5),b("click",function(){return o.removeAll()}),c(8,"uds-translate"),g(9,"Remove all"),d()()(),c(10,"div",6)(11,"mat-form-field",7)(12,"input",8),b("keyup",function(s){return o.checkKey(s)}),H("ngModelChange",function(s){return $(o.input,s)||(o.input=s),s}),d(),c(13,"button",9),b("click",function(){return o.addElements()}),c(14,"i",10),g(15,"add"),d()()()()()(),c(16,"mat-dialog-actions")(17,"button",5),b("click",function(){return o.cancel()}),c(18,"uds-translate"),g(19,"Cancel"),d()(),c(20,"button",11),b("click",function(){return o.save()}),c(21,"uds-translate"),g(22,"Ok"),d()()()),n&2&&(m(),P(" ",o.data.title,` `),m(4),p("ngForOf",o.values),m(7),U("ngModel",o.input))},dependencies:[$e,lt,xe,Se,ke,Gi,Xe,et,Je,_e,ro,ft,le],styles:[".content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem;margin-bottom:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var zO=(()=>{let e=class e{constructor(t){this.api=t,this.field={},this.changed=new T}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return q(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let t=yield BO.launch(this.api,this.field.gui.label,this.field.value||this.field.gui.default||[]);this.changed.emit({field:this.field})})}getValue(){if(this.valueEmpty())return"";let t=this.field.value.filter((n,o,a)=>o<5).join(", ");return this.field.value.length>5&&(t+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),t}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always",3,"click"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0),b("click",function(){return o.launch()}),c(1,"mat-label"),g(2),d(),I(3,"input",1),d()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),p("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[_e,Ae,ft],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]});let i=e;return i})();var UO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){wM(this.field.value)?this.field.value=fp(this.field.gui.default):this.field.value=fp(this.field.value)}getValue(){return fp(this.field.value)?django.gettext("Yes"):django.gettext("No")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:3,vars:4,consts:[[1,"toggle"],[3,"ngModelChange","change","ngModel","required","disabled"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-slide-toggle",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),g(2),d()()),n&2&&(m(),U("ngModel",o.field.value),p("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),P(" ",o.field.gui.label," "))},dependencies:[xe,Ri,Se,or]});let i=e;return i})();function yQ(i,e){if(i&1&&I(0,"div",5),i&2){let r=_().$implicit,t=_();p("innerHTML",t.asIcon(r),Gt)}}function wQ(i,e){if(i&1&&(c(0,"div"),D(1,yQ,1,1,"div",4),d()),i&2){let r=e.$implicit,t=_();m(),p("ngIf",r.id===t.field.value)}}function CQ(i,e){if(i&1&&(c(0,"mat-option",6),I(1,"div",5),d()),i&2){let r=e.$implicit,t=_();p("value",r.id),m(),p("innerHTML",t.asIcon(r),Gt)}}var HO=(()=>{let e=class e{constructor(t){this.api=t,this.field={},this.changed=new T,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let t=this.field.gui.choices||[];this.field.value===""&&t.length>0&&(this.field.value=t[0].id)}asIcon(t){return this.api.safeString(this.api.gui.icon(t.img)+t.text)}filteredValues(){let t=this.field.gui.choices||[];if(!this.filter)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[4,"ngFor","ngForOf"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-select",0),b("valueChange",function(){return o.changed.emit(o)}),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),c(4,"mat-select-trigger"),D(5,wQ,2,1,"div",1),d(),c(6,"uds-cond-select-search",2),b("changed",function(s){return o.filter=s}),d(),D(7,CQ,2,2,"mat-option",3),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),p("placeholder",o.field.gui.tooltip),U("ngModel",o.field.value),p("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),p("ngForOf",o.field.gui.choices),m(),p("options",o.field.gui.choices),m(),p("ngForOf",o.filteredValues()))},dependencies:[$e,pe,xe,Ri,Se,_e,Ae,vt,uf,it,di]});let i=e;return i})();var $O=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.value=new Date}get date(){return this.value}set date(t){this.value!==t&&(this.value=t,this.field.value=ba("%Y-%m-%d",this.value))}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"",this.field.value==="2000-01-01"?this.field.value=ba("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=ba("%Y-12-31"));let t=this.field.value.split("-");t.length===3&&(this.value=new Date(+t[0],+t[1]-1,+t[2]))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["endDatePicker",""],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder","disabled"],["matSuffix","",3,"for"]],template:function(n,o){if(n&1){let a=A();c(0,"mat-form-field",1)(1,"mat-label"),g(2),d(),c(3,"input",2),H("ngModelChange",function(l){return y(a),$(o.date,l)||(o.date=l),w(l)}),d(),I(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let a=Ce(6);m(2),P(" ",o.field.gui.label," "),m(),p("matDatepicker",a),U("ngModel",o.date),p("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),p("for",a)}},dependencies:[lt,xe,Se,_e,Ae,ro,ft,eg,Gl,Yd]});let i=e;return i})();function xQ(i,e){if(i&1){let r=A();c(0,"mat-chip-row",5),b("removed",function(){let n=y(r).$implicit,o=_();return w(o.remove(n))}),g(1),c(2,"i",6),g(3,"cancel"),d()()}if(i&2){let r=e.$implicit,t=_();p("removable",t.field.gui.readonly!==!0),m(),P(" ",r," ")}}var WO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((t,n,o)=>{t.trim()===""&&o.splice(n,1)})}add(t){let n=t.input,o=t.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(t){if(!this.field.value){console.warn("Trying to remove tag from field with no values: "+this.field.name);return}let n=this.field.value.indexOf(t);n>=0&&this.field.value.splice(n,1)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable","removed",4,"ngFor","ngForOf"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1){let a=A();c(0,"mat-form-field",1)(1,"mat-label"),g(2),d(),c(3,"mat-chip-grid",2,0),b("change",function(){return y(a),w(o.changed.emit(o))}),D(5,xQ,4,2,"mat-chip-row",3),c(6,"input",4),b("matChipInputTokenEnd",function(l){return y(a),w(o.add(l))}),d()()()}if(n&2){let a=Ce(4);m(2),P(" ",o.field.gui.label," "),m(),p("disabled",o.field.gui.readonly===!0),m(2),p("ngForOf",o.field.value),m(),p("placeholder",o.field.gui.tooltip)("matChipInputFor",a)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[$e,_e,Ae,vO,bO,_O,tC],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]});let i=e;return i})();var ESe=nu(YO());var QO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e,bootstrap:[kO]}),e.\u0275inj=J({providers:[z,X,{provide:Sa,useClass:AO},_I(vI())],imports:[wh,NA,mO,SO,CT.forRoot({echarts:()=>import("./chunk-FVAVE77T.js")})]});let i=e;return i})();EE(Lp,function(){return[il,uh,nr,OO,PO,FO,NO,LO,VO,jO,zO,UO,HO,$O,WO,RO]},[]);Bp.production&&void 0;EI().bootstrapModule(QO).catch(i=>console.log(i)); diff --git a/server/src/uds/templates/uds/admin/index.html b/server/src/uds/templates/uds/admin/index.html index dfd409e1b..63ca927d6 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -102,6 +102,6 @@ - +